mirror of
https://github.com/YunoHost-Apps/bozon_ynh.git
synced 2024-09-03 18:16:09 +02:00
Merge pull request #10 from ewilly/testing
Last master version of Bozon or not #8
This commit is contained in:
commit
17fbeec103
3 changed files with 19 additions and 2 deletions
1
BoZoN-stable
Normal file
1
BoZoN-stable
Normal file
|
@ -0,0 +1 @@
|
|||
091b4f66f213385a1afc2d88159fbb3deb466c8f
|
|
@ -62,6 +62,15 @@
|
|||
"fr": "Définissez la taille limite de téléchargement"
|
||||
},
|
||||
"default": "2G"
|
||||
},
|
||||
{
|
||||
"name": "version",
|
||||
"ask": {
|
||||
"en": "Select the version of BoZoN you want to install",
|
||||
"fr": "Sélectionnez la version de BoZoN que vous souhaitez installer"
|
||||
},
|
||||
"choices": ["Stable","Latest"],
|
||||
"default": "Stable"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ path=$2
|
|||
is_public=$3
|
||||
default_lang=$4
|
||||
filesize=$5
|
||||
version=$6
|
||||
|
||||
# definie useful vars
|
||||
app=bozon
|
||||
|
@ -31,10 +32,16 @@ sudo yunohost app setting $app domain -v "$domain"
|
|||
sudo yunohost app setting $app path -v "$path"
|
||||
|
||||
# download bozon
|
||||
sudo wget https://github.com/broncowdd/BoZoN/archive/master.zip -O $parent_path/master.zip
|
||||
if [ "$version" = "Latest" ];
|
||||
then
|
||||
sudo wget https://github.com/broncowdd/BoZoN/archive/master.zip -O $parent_path/master.zip
|
||||
else
|
||||
stable=$(curl https://github.com/ewilly/bozon_ynh/blob/master/BoZoN-stable)
|
||||
sudo wget https://github.com/broncowdd/BoZoN/archive/$stable.zip -O $parent_path/master.zip
|
||||
fi
|
||||
sudo unzip $parent_path/master.zip -d $parent_path/
|
||||
sudo rm $parent_path/master.zip
|
||||
sudo mv $parent_path/BoZoN-master $parent_path/$app
|
||||
sudo mv $parent_path/BoZoN-* $parent_path/$app
|
||||
|
||||
# add required packages
|
||||
sudo apt-get install php5-curl php5-gd
|
||||
|
|
Loading…
Reference in a new issue