mirror of
https://github.com/YunoHost-Apps/phpmyadmin_ynh.git
synced 2024-09-03 19:56:46 +02:00
Use ynh_die instead of exit 1
This commit is contained in:
parent
91c90dd955
commit
11cf11434b
1 changed files with 2 additions and 2 deletions
|
@ -15,14 +15,14 @@ db_pwd=$(ynh_app_setting_get $app mysqlpwd)
|
|||
|
||||
if [ -d $final_path ]; then
|
||||
echo "There is already a directory: $final_path " >&2
|
||||
exit 1
|
||||
ynh_die
|
||||
fi
|
||||
|
||||
# Restore Nginx
|
||||
conf=/etc/nginx/conf.d/$domain.d/$app.conf
|
||||
if [ -f $conf ]; then
|
||||
echo "There is already a nginx conf file at this path: $conf " >&2
|
||||
exit 1
|
||||
ynh_die
|
||||
fi
|
||||
sudo cp -a ./nginx.conf $conf
|
||||
|
||||
|
|
Loading…
Reference in a new issue