1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pluxml_ynh.git synced 2024-09-03 20:16:02 +02:00

[enh] remove additionnal /

This commit is contained in:
Julien Malik 2014-11-17 16:05:08 +01:00 committed by Moul
parent 615b4f3946
commit 3eaffb354c

View file

@ -35,6 +35,8 @@ sudo mkdir -p $final_path
#copy files to final folder and set permissions #copy files to final folder and set permissions
sudo cp -R ../sources/* $final_path/ sudo cp -R ../sources/* $final_path/
#setup permissions
sudo chown -R root: $final_path sudo chown -R root: $final_path
sudo chown -R www-data: $final_path/data sudo chown -R www-data: $final_path/data
sudo find $final_path -type f | xargs sudo chmod 644 sudo find $final_path -type f | xargs sudo chmod 644
@ -45,7 +47,7 @@ sudo sed -i "s@YNH_EXAMPLE_PATH@$path@g" ../conf/nginx.conf
sudo sed -i "s@YNH_EXAMPLE_ALIAS@$final_path@g" ../conf/nginx.conf sudo sed -i "s@YNH_EXAMPLE_ALIAS@$final_path@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
#temporal set public acessible #temporary set public accessible
sudo yunohost app setting $app unprotected_uris -v "/" sudo yunohost app setting $app unprotected_uris -v "/"
# Restart services # Restart services
@ -66,7 +68,7 @@ curl -k -X POST \
--data-urlencode "pwd=$password" \ --data-urlencode "pwd=$password" \
--data-urlencode "pwd2=$password" \ --data-urlencode "pwd2=$password" \
--data-urlencode "token=$token" \ --data-urlencode "token=$token" \
https://$domain/$path/install.php > /dev/null 2>&1 https://$domain$path/install.php > /dev/null 2>&1
sudo rm -f $final_path/install.php sudo rm -f $final_path/install.php