mirror of
https://github.com/YunoHost-Apps/etherpad_mypads_ynh.git
synced 2024-09-03 18:36:09 +02:00
Fix
This commit is contained in:
parent
6ba8b0608c
commit
b8d31a1606
4 changed files with 7 additions and 7 deletions
|
@ -84,7 +84,7 @@ fi
|
||||||
|
|
||||||
# Rebuild the meta package and install the new dependencies
|
# Rebuild the meta package and install the new dependencies
|
||||||
( cd scripts # Move to scripts directory to allow the helper to find the manifest where it expects to find it.
|
( cd scripts # Move to scripts directory to allow the helper to find the manifest where it expects to find it.
|
||||||
ynh_install_app_dependencies $dependencies)
|
ynh_exec_warn_less ynh_install_app_dependencies $dependencies)
|
||||||
|
|
||||||
# Remove all unused dependencies
|
# Remove all unused dependencies
|
||||||
ynh_package_autopurge
|
ynh_package_autopurge
|
||||||
|
|
|
@ -84,7 +84,7 @@ fi
|
||||||
|
|
||||||
# Rebuild the meta package and install the new dependencies
|
# Rebuild the meta package and install the new dependencies
|
||||||
( cd scripts # Move to scripts directory to allow the helper to find the manifest where it expects to find it.
|
( cd scripts # Move to scripts directory to allow the helper to find the manifest where it expects to find it.
|
||||||
ynh_install_app_dependencies $dependencies)
|
ynh_exec_warn_less ynh_install_app_dependencies $dependencies)
|
||||||
|
|
||||||
# Remove all unused dependencies
|
# Remove all unused dependencies
|
||||||
ynh_package_autopurge
|
ynh_package_autopurge
|
||||||
|
|
|
@ -197,8 +197,8 @@ apply_config() {
|
||||||
if [ "$pad_config_automatic_logout" != "$old_pad_config_automatic_logout" ]
|
if [ "$pad_config_automatic_logout" != "$old_pad_config_automatic_logout" ]
|
||||||
then
|
then
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
pushd "$final_path/src"
|
#pushd "$final_path/src"
|
||||||
ynh_secure_remove --file="$final_path/src/package-lock.json" #added to fix saveError ENOENT: no such file or directory
|
#ynh_secure_remove --file="$final_path/src/package-lock.json" #added to fix saveError ENOENT: no such file or directory
|
||||||
if [ "$pad_config_automatic_logout" = "0" ]
|
if [ "$pad_config_automatic_logout" = "0" ]
|
||||||
then
|
then
|
||||||
ynh_replace_string --match_string="^\(.*\"automatic_logut.*$\)" --replace_string="\/\/\1" --target_file="$config_file"
|
ynh_replace_string --match_string="^\(.*\"automatic_logut.*$\)" --replace_string="\/\/\1" --target_file="$config_file"
|
||||||
|
@ -247,8 +247,8 @@ apply_config() {
|
||||||
if [ "$mypads" != "$old_mypads" ]
|
if [ "$mypads" != "$old_mypads" ]
|
||||||
then
|
then
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
pushd "$final_path/src"
|
#pushd "$final_path/src"
|
||||||
ynh_secure_remove --file="$final_path/src/package-lock.json" #added to fix saveError ENOENT: no such file or directory
|
#ynh_secure_remove --file="$final_path/src/package-lock.json" #added to fix saveError ENOENT: no such file or directory
|
||||||
if [ "$mypads" = "1" ]
|
if [ "$mypads" = "1" ]
|
||||||
then
|
then
|
||||||
ynh_exec_as $app env "$ynh_node_load_PATH" npm install ep_mypads@${mypads_version}
|
ynh_exec_as $app env "$ynh_node_load_PATH" npm install ep_mypads@${mypads_version}
|
||||||
|
|
|
@ -50,7 +50,7 @@ if [ "$export" != "none" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Removing dependencies..." --weight=60
|
ynh_script_progression --message="Removing dependencies..." --weight=60
|
||||||
# Remove metapackage and its dependencies
|
# Remove metapackage and its dependencies
|
||||||
ynh_remove_app_dependencies
|
ynh_exec_warn_less ynh_remove_app_dependencies
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue