1
0
Fork 0
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:
polytan02 2017-02-25 00:14:58 +00:00 committed by GitHub
parent 91c90dd955
commit 11cf11434b

View file

@ -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