mirror of
https://github.com/YunoHost-Apps/privatebin_ynh.git
synced 2024-09-03 20:15:56 +02:00
[fix] Allow root domain installation
This commit is contained in:
parent
f1a2648651
commit
24f30eca9d
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,9 @@ path=$(sudo yunohost app setting zerobin path)
|
|||
is_public=$(sudo yunohost app setting zerobin is_public)
|
||||
|
||||
# Remove trailing "/" for next commands
|
||||
if [[ ! "$path" == "/" ]]; then
|
||||
path=${path%/}
|
||||
fi
|
||||
|
||||
# Copy files to the right place
|
||||
final_path=/var/www/zerobin
|
||||
|
|
Loading…
Reference in a new issue