mirror of
https://github.com/YunoHost-Apps/bozon_ynh.git
synced 2024-09-03 18:16:09 +02:00
23 lines
678 B
Bash
23 lines
678 B
Bash
#! /bin/bash
|
|
|
|
# causes the shell to exit if any subcommand or pipeline returns a non-zero status
|
|
set -e
|
|
|
|
app=bozon
|
|
parent_path=/var/www
|
|
final_path=$parent_path/$app
|
|
data_path=/home/yunohost.app/$app
|
|
|
|
# retrieve arguments
|
|
path=$(sudo yunohost app setting $app path)
|
|
|
|
# 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
|
|
|
|
# Restart services
|
|
sudo service nginx reload
|
|
sudo yunohost app ssowatconf
|