mirror of
https://github.com/YunoHost-Apps/etherpad_mypads_ynh.git
synced 2024-09-03 18:36:09 +02:00
Disable ep_automatic_logut in config
This commit is contained in:
parent
934c2f4a5d
commit
f6a4fd1a94
1 changed files with 6 additions and 0 deletions
|
@ -228,12 +228,18 @@ apply_config() {
|
|||
# Plugin option ep_automatic_logut
|
||||
if [ "$pad_config_automatic_logout" != "$old_pad_config_automatic_logout" ]
|
||||
then
|
||||
ynh_use_nodejs
|
||||
pushd "$final_path"
|
||||
if [ "$pad_config_automatic_logout" = "0" ]
|
||||
then
|
||||
ynh_replace_string --match_string="^\(.*\"automatic_logut.*$\)" --replace_string="\/\/\1" --target_file="$config_file"
|
||||
npm uninstall ep_automatic_logut
|
||||
else
|
||||
ynh_replace_string --match_string="^\/\/\(.*\"automatic_logut.*$\)" --replace_string="\1" --target_file="$config_file"
|
||||
npm install ep_automatic_logut
|
||||
fi
|
||||
popd
|
||||
chown -R $app: $final_path/node_modules
|
||||
restart_etherpad=1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue