|
@@ -23,19 +23,17 @@ export PIRATEBOX_UPGRADE=1
|
|
|
sudo bash /etc/yunohost/apps/piratebox/scripts/remove &> /dev/null
|
|
|
bash ./install "${domain}" "${path}" "${opt_domain}" "${opt_name}" "${opt_deleting}" "${opt_renaming}" "${opt_chat}"
|
|
|
|
|
|
-gitcommit=$(ynh_setting piratebox gitcommit)
|
|
|
gitcommit_upstream=$(ynh_setting piratebox gitcommit_upstream)
|
|
|
|
|
|
sudo cp -a "${tmpdir}/settings.yml" /etc/yunohost/apps/piratebox/
|
|
|
sudo mv "${tmpdir}/uploads/"* /var/www/piratebox/public/uploads/ 2> /dev/null
|
|
|
sudo rm -r "${tmpdir}/"
|
|
|
|
|
|
-sudo yunohost app setting piratebox gitcommit -v "${gitcommit}"
|
|
|
sudo yunohost app setting piratebox gitcommit_upstream -v "${gitcommit_upstream}"
|
|
|
|
|
|
# Changes
|
|
|
|
|
|
-if [ "$(ynh_setting piratebox opt_maxspace)" == '' ]; then
|
|
|
+if [ -z "$(ynh_setting piratebox opt_maxspace)" ]; then
|
|
|
sudo yunohost app setting piratebox opt_maxspace -v 90
|
|
|
fi
|
|
|
|