mirror of
https://github.com/YunoHost-Apps/monitorix_ynh.git
synced 2024-09-03 19:46:06 +02:00
Cleanup removeme and fix helper call
This commit is contained in:
parent
f00f924348
commit
8f9af8dc89
3 changed files with 4 additions and 6 deletions
|
@ -169,10 +169,10 @@ configure_db() {
|
||||||
# Here the idea is to monitor available database
|
# Here the idea is to monitor available database
|
||||||
# So if mysql is installed we monitor it but mysql could also not be installed and in this case don't need to monitor it
|
# So if mysql is installed we monitor it but mysql could also not be installed and in this case don't need to monitor it
|
||||||
# For postgresql it's the same case
|
# For postgresql it's the same case
|
||||||
if $mysql_installed && ! ynh_mysql_user_exists --user="$db_user"; then
|
if $mysql_installed && ! ynh_mysql_user_exists "$db_user"; then
|
||||||
ynh_mysql_create_user "$db_user" "$db_pwd"
|
ynh_mysql_create_user "$db_user" "$db_pwd"
|
||||||
fi
|
fi
|
||||||
if $postgresql_installed && ! ynh_psql_user_exists --user="$db_user"; then
|
if $postgresql_installed && ! ynh_psql_user_exists "$db_user"; then
|
||||||
ynh_psql_create_user "$db_user" "$db_pwd"
|
ynh_psql_create_user "$db_user" "$db_pwd"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,8 +8,6 @@
|
||||||
source ./_common.sh
|
source ./_common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
#REMOVEME? ynh_abort_if_errors
|
|
||||||
|
|
||||||
ynh_app_config_apply() {
|
ynh_app_config_apply() {
|
||||||
_ynh_app_config_apply
|
_ynh_app_config_apply
|
||||||
load_vars
|
load_vars
|
||||||
|
|
|
@ -41,10 +41,10 @@ for pool_dir_by_version in /etc/php/*; do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if $mysql_installed && ynh_mysql_user_exists --user="$db_user"; then
|
if $mysql_installed && ynh_mysql_user_exists "$db_user"; then
|
||||||
ynh_mysql_drop_user "$db_user"
|
ynh_mysql_drop_user "$db_user"
|
||||||
fi
|
fi
|
||||||
if $postgresql_installed && ynh_psql_user_exists --user="$db_user"; then
|
if $postgresql_installed && ynh_psql_user_exists "$db_user"; then
|
||||||
ynh_psql_drop_user "$db_user"
|
ynh_psql_drop_user "$db_user"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue