mirror of
https://github.com/YunoHost-Apps/zerobin_ynh.git
synced 2024-09-03 18:06:01 +02:00
Merge pull request #8 from Kloadut/master
[fix] Allow root domain installation
This commit is contained in:
commit
7c3c5fcec4
2 changed files with 8 additions and 1 deletions
|
@ -11,6 +11,11 @@ if [[ ! $? -eq 0 ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
# Remove trailing "/" for next commands
|
||||
if [[ ! "$path" == "/" ]]; then
|
||||
path=${path%/}
|
||||
fi
|
||||
|
||||
# Copy files to the right place
|
||||
final_path=/var/www/zerobin
|
||||
sudo mkdir -p $final_path
|
||||
|
|
|
@ -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
|
||||
path=${path%/}
|
||||
if [[ ! "$path" == "/" ]]; then
|
||||
path=${path%/}
|
||||
fi
|
||||
|
||||
# Copy files to the right place
|
||||
final_path=/var/www/zerobin
|
||||
|
|
Loading…
Reference in a new issue