diff --git a/README.md b/README.md index 37227ab..5a52dec 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,8 @@ web panel for proxmaster built with Flask ### setup panel: -1. adduser USER -2. cd /home/USER +1. adduser proxadmin +2. cd /home/proxadmin 3. virtualenv -p python3 appserver 4. cd appserver 5. git clone git://github.com/kanaka/noVNC @@ -18,4 +18,6 @@ web panel for proxmaster built with Flask 7. source bin/activate 8. cd proxmaster-panel/ ; pip install -r requirements.txt 9. python3 manage.py db init ; python3 manage.py db migrate -m "init" ; python3 manage.py db upgrade ; python3 manage.py deploy +10. chmod +x /home/proxadmin/appserver/proxadmin/cronexec.sh +11. add "00 09 * * * root /home/proxadmin/appserver/proxadmin/cronexec.sh" to /etc/crontab diff --git a/app/smanager/routes.py b/app/smanager/routes.py index 3b79b4c..e449863 100644 --- a/app/smanager/routes.py +++ b/app/smanager/routes.py @@ -64,7 +64,7 @@ def activate(itemid=0): db.session.commit() if owner.is_administrator: - return redirect(url_for('admin.list_items')) + return redirect(url_for('admin.list_services')) else: return redirect(url_for('main.dashboard')) return render_template('smanager/activate.html', form=form, service=service, ppm=ppm, total=(ppm * service.period), currency=owner.currency) diff --git a/app/templates/admin/admin_tasks.html b/app/templates/admin/admin_tasks.html index 10284cb..76d56fa 100644 --- a/app/templates/admin/admin_tasks.html +++ b/app/templates/admin/admin_tasks.html @@ -3,10 +3,10 @@