scale-catalog/update/organizr.sh
kjeld Schouten-Lebbing 40336033fc also pkg the right way
2020-02-27 20:16:19 +01:00

12 lines
790 B
Bash
Executable File

iocage exec organizr service nginx stop
iocage exec organizr service php-fpm stop
iocage update organizr
iocage exec organizr "pkg update && pkg upgrade -y"
mv /mnt/tank/iocage/jails/organizr/root/usr/local/etc/nginx/nginx.conf /mnt/tank/iocage/jails/organizr/root/usr/local/etc/nginx/nginx.conf.bak
cp ../includes/organizr-conf/nginx.conf /mnt/tank/iocage/jails/organizr/root/usr/local/etc/nginx/nginx.conf
cp ../includes/organizr-conf/custom /mnt/tank/iocage/jails/organizr/root/usr/local/etc/nginx/custom
iocage exec tautulli cd /usr/local/www/Organizr
iocage exec organizr git pull
iocage exec organizr chown -R www:www /usr/local/www /config /usr/local/etc/nginx/nginx.conf /usr/local/etc/nginx/custom
iocage exec organizr service nginx start
iocage exec organizr service php-fpm start