1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00

remove '|| true'

This commit is contained in:
Jean-Baptiste Holcroft 2017-10-19 15:21:24 +02:00
parent 3cc4c7ef75
commit 1a9d9cee46
5 changed files with 12 additions and 12 deletions

View file

@ -25,11 +25,11 @@ dbpass=$(ynh_app_setting_get "$app" mysqlpwd)
final_path=$(ynh_app_setting_get "$app" final_path) final_path=$(ynh_app_setting_get "$app" final_path)
# Copy the app source files # Copy the app source files
ynh_backup "$final_path" > ./db.sql ynh_backup "$final_path"
# Copy the conf files # Copy the conf files
ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf" ynh_backup "/etc/nginx/conf.d/${domain}.d/${app}.conf"
ynh_backup "/etc/php5/fpm/pool.d/${app}.conf" ynh_backup "/etc/php5/fpm/pool.d/${app}.conf"
# Dump the database # Dump the database
ynh_mysql_dump_db "$dbname" ynh_mysql_dump_db "$dbname" > ./db.sql

View file

@ -102,5 +102,5 @@ fi
ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ${final_path}/app/Schema/Sql/mysql.sql ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ${final_path}/app/Schema/Sql/mysql.sql
# Reload services # Reload services
service php5-fpm restart || true service php5-fpm restart
service nginx reload || true service nginx reload

View file

@ -12,8 +12,8 @@ dbname=$app
dbuser=$app dbuser=$app
# Drop MySQL database and user # Drop MySQL database and user
ynh_mysql_drop_db "$dbname" 2>/dev/null || true ynh_mysql_drop_db "$dbname"
ynh_mysql_drop_user "$dbuser" 2>/dev/null || true ynh_mysql_drop_user "$dbuser"
# Retrieve domain from app settings # Retrieve domain from app settings
domain=$(ynh_app_setting_get "$app" domain) domain=$(ynh_app_setting_get "$app" domain)
@ -24,5 +24,5 @@ ynh_secure_remove "/etc/php5/fpm/pool.d/${app}.conf"
ynh_secure_remove "/etc/nginx/conf.d/${domain}.d/${app}.conf" ynh_secure_remove "/etc/nginx/conf.d/${domain}.d/${app}.conf"
# Reload services # Reload services
service php5-fpm restart || true service php5-fpm restart
service nginx reload || true service nginx reload

View file

@ -43,5 +43,5 @@ ynh_restore_file "/etc/nginx/conf.d/${domain}.d/${app}.conf"
ynh_restore_file "/etc/php5/fpm/pool.d/${app}.conf" ynh_restore_file "/etc/php5/fpm/pool.d/${app}.conf"
# Reload services # Reload services
service php5-fpm restart || true service php5-fpm restart
service nginx reload || true service nginx reload

View file

@ -101,5 +101,5 @@ then
fi fi
# Reload services # Reload services
service php5-fpm restart || true service php5-fpm restart
service nginx reload || true service nginx reload