mirror of
https://github.com/YunoHost-Apps/prestashop_ynh.git
synced 2024-09-03 20:06:39 +02:00
with_mysql ne fonctionne pas correctement
This commit is contained in:
parent
75691da994
commit
89cfdff4da
1 changed files with 3 additions and 3 deletions
|
@ -11,16 +11,16 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
# Retrieve app settings
|
# Retrieve app settings
|
||||||
domain=$(ynh_app_setting_get "$app" domain)
|
domain=$(ynh_app_setting_get "$app" domain)
|
||||||
with_mysql=$(ynh_app_setting_get "$app" with_mysql)
|
# with_mysql=$(ynh_app_setting_get "$app" with_mysql)
|
||||||
|
|
||||||
# Drop MySQL database and user as needed
|
# Drop MySQL database and user as needed
|
||||||
if [[ $with_mysql -eq 1 ]]; then
|
#if [[ $with_mysql -eq 1 ]]; then
|
||||||
dbname=$app
|
dbname=$app
|
||||||
dbuser=$app
|
dbuser=$app
|
||||||
dbpass=$(ynh_app_setting_get "$app" mysqlpwd)
|
dbpass=$(ynh_app_setting_get "$app" mysqlpwd)
|
||||||
ynh_mysql_drop_db $dbname || true
|
ynh_mysql_drop_db $dbname || true
|
||||||
ynh_mysql_drop_user $dbuser || true
|
ynh_mysql_drop_user $dbuser || true
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
# Delete app directory and configurations
|
# Delete app directory and configurations
|
||||||
sudo rm -rf "/var/www/${app}"
|
sudo rm -rf "/var/www/${app}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue