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
|
if [ -d $final_path ]; then
|
||||||
echo "There is already a directory: $final_path " >&2
|
echo "There is already a directory: $final_path " >&2
|
||||||
exit 1
|
ynh_die
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restore Nginx
|
# Restore Nginx
|
||||||
conf=/etc/nginx/conf.d/$domain.d/$app.conf
|
conf=/etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
if [ -f $conf ]; then
|
if [ -f $conf ]; then
|
||||||
echo "There is already a nginx conf file at this path: $conf " >&2
|
echo "There is already a nginx conf file at this path: $conf " >&2
|
||||||
exit 1
|
ynh_die
|
||||||
fi
|
fi
|
||||||
sudo cp -a ./nginx.conf $conf
|
sudo cp -a ./nginx.conf $conf
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue