nextcloud/webservice/update-htaccess.sh
Valentin Gehrke bf8406bd82 Prevent endless restarting of update-htaccess.sh
In version 14 beta there was a bug which let the htaccess fail. Unfortunately
supervisord restarted the script in case of an error which led to it being
endlessly restarted. To prevent this and similar update issues in the future, we
let the update-script exit with code 0 even if there's an error.
2019-08-08 22:15:17 +02:00

8 lines
143 B
Bash

#!/bin/bash
[ -f "/var/www/html/config/config.php" ] || exit 0
cd /var/www/html
sudo -u www-data php occ maintenance:update:htaccess
exit 0