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:
parent
615b4f3946
commit
3eaffb354c
1 changed files with 4 additions and 2 deletions
|
@ -35,6 +35,8 @@ sudo mkdir -p $final_path
|
|||
|
||||
#copy files to final folder and set permissions
|
||||
sudo cp -R ../sources/* $final_path/
|
||||
|
||||
#setup permissions
|
||||
sudo chown -R root: $final_path
|
||||
sudo chown -R www-data: $final_path/data
|
||||
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 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 "/"
|
||||
|
||||
# Restart services
|
||||
|
@ -66,7 +68,7 @@ curl -k -X POST \
|
|||
--data-urlencode "pwd=$password" \
|
||||
--data-urlencode "pwd2=$password" \
|
||||
--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
|
||||
|
||||
|
|
Loading…
Reference in a new issue