1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bozon_ynh.git synced 2024-09-03 18:16:09 +02:00
bozon_ynh/scripts/upgrade

24 lines
678 B
Text
Raw Normal View History

2016-03-23 19:30:43 +01:00
#! /bin/bash
2016-04-04 22:35:43 +02:00
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
set -e
2016-03-23 19:30:43 +01:00
app=bozon
2016-04-04 20:01:54 +02:00
parent_path=/var/www
final_path=$parent_path/$app
2016-04-05 20:03:26 +02:00
data_path=/home/yunohost.app/$app
2016-03-23 19:30:43 +01:00
2016-04-05 20:03:26 +02:00
# retrieve arguments
2016-03-23 19:30:43 +01:00
path=$(sudo yunohost app setting $app path)
2016-04-05 20:03:26 +02:00
# download bozon
sudo wget https://github.com/broncowdd/BoZoN/archive/master.zip -O $parent_path/master.zip
sudo unzip $parent_path/master.zip -d $parent_path/
sudo rm $parent_path/master.zip
sudo rsync -avz --exclude="config.php" --exclude=".htaccess" $parent_path/BoZoN-master/* $parent_path/$app/
sudo rm -R $parent_path/BoZoN-master
2016-03-23 19:30:43 +01:00
# Restart services
sudo service nginx reload
sudo yunohost app ssowatconf