post_install() { cd /usr/share/webapps/openminer bash scripts/setup_prod.sh # Set permissions chown http:http . db.sqlite3 chown http:http -R static myenv sed -i "s/^DEBUG = .*$/DEBUG = False/" openminer_web/settings.py echo "==>" echo "==>" echo "==> Check /usr/share/webapps/openminer/misc/apache.conf" echo "==>" echo "==>" } post_upgrade() { cd /usr/share/webapps/openminer bash scripts/update_prod.sh sed -i "s/^DEBUG = .*$/DEBUG = False/" openminer_web/settings.py sudo systemctl restart httpd }