mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Update post_user_delete
This commit is contained in:
parent
b6ca6ed83e
commit
e166594200
1 changed files with 2 additions and 2 deletions
|
@ -5,12 +5,12 @@ source /usr/share/yunohost/helpers
|
||||||
user="$1"
|
user="$1"
|
||||||
app="$(basename $0 | cut -d- -f 2-)" # Extract the app name from the script name, which is supposed to be something like "50-app_id"
|
app="$(basename $0 | cut -d- -f 2-)" # Extract the app name from the script name, which is supposed to be something like "50-app_id"
|
||||||
install_dir=$(ynh_app_setting_get --app=$app --key=install_dir)
|
install_dir=$(ynh_app_setting_get --app=$app --key=install_dir)
|
||||||
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
php_version=$(ynh_app_setting_get --app=$app --key=php_version)
|
||||||
|
|
||||||
# Define a function to execute commands with `occ`
|
# Define a function to execute commands with `occ`
|
||||||
exec_occ() {
|
exec_occ() {
|
||||||
(cd "$install_dir" && ynh_exec_as "$app" \
|
(cd "$install_dir" && ynh_exec_as "$app" \
|
||||||
php${phpversion} --define apc.enable_cli=1 occ --no-interaction --no-ansi "$@")
|
php${php_version} --define apc.enable_cli=1 occ --no-interaction --no-ansi "$@")
|
||||||
}
|
}
|
||||||
|
|
||||||
exec_occ user:delete $user
|
exec_occ user:delete $user
|
||||||
|
|
Loading…
Add table
Reference in a new issue