mirror of
https://github.com/YunoHost-Apps/rocketchat_ynh.git
synced 2024-09-03 20:16:25 +02:00
Improves path check
This commit is contained in:
parent
1995a68faf
commit
19c910fb36
1 changed files with 6 additions and 6 deletions
|
@ -38,7 +38,13 @@ if [[ ! $? -eq 0 ]]; then
|
|||
ynh_die "domain not available"
|
||||
fi
|
||||
|
||||
final_path="/var/www/$app"
|
||||
[[ -d $final_path ]] && ynh_die \
|
||||
"The destination directory '$final_path' already exists.\
|
||||
You should safely delete it before installing this app."
|
||||
|
||||
# Save specific settings
|
||||
ynh_app_setting_set $app final_path $final_path
|
||||
ynh_app_setting_set $app is_public $is_public
|
||||
|
||||
#Install dependencies
|
||||
|
@ -58,12 +64,6 @@ sudo n $NODE_VERSION
|
|||
port=$(ynh_find_port 3000)
|
||||
|
||||
# Create destination
|
||||
final_path="/var/www/$app"
|
||||
[[ -d $final_path ]] && ynh_die \
|
||||
"The destination directory '$final_path' already exists.\
|
||||
You should safely delete it before installing this app."
|
||||
|
||||
ynh_app_setting_set $app final_path $final_path
|
||||
sudo mkdir -p $final_path
|
||||
|
||||
# Copy and set systemd configuration
|
||||
|
|
Loading…
Reference in a new issue