scale-catalog/update/organizr.sh

10 lines
636 B
Bash
Raw Normal View History

2020-02-27 18:58:24 +00:00
iocage exec organizr service nginx stop
iocage exec organizr service php-fpm stop
2020-02-27 19:06:16 +00:00
iocage update organizr
2020-02-27 19:16:19 +00:00
iocage exec organizr "pkg update && pkg upgrade -y"
2020-02-27 18:58:24 +00:00
cp ../includes/organizr-conf/nginx.conf /mnt/tank/iocage/jails/organizr/root/usr/local/etc/nginx/nginx.conf
2020-02-27 19:30:33 +00:00
cp ../includes/organizr-conf/custom/*.* /mnt/tank/iocage/jails/organizr/root/usr/local/etc/nginx/custom/
iocage exec organizr "cd /usr/local/www/Organizr && git pull"
2020-02-27 18:58:24 +00:00
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