mirror of
https://github.com/YunoHost-Apps/zerobin_ynh.git
synced 2024-09-03 18:06:01 +02:00
[fix] Allow root domain installation
This commit is contained in:
parent
c2094bc3b8
commit
f1a2648651
1 changed files with 5 additions and 0 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
|
||||
|
|
Loading…
Add table
Reference in a new issue