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
4e145817bd
commit
e280928ce4
5 changed files with 40 additions and 38 deletions
|
@ -26,7 +26,7 @@
|
||||||
"email": "maniackc_dev@crudelis.fr"
|
"email": "maniackc_dev@crudelis.fr"
|
||||||
}],
|
}],
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 4.2.0"
|
"yunohost": ">= 4.2.4"
|
||||||
},
|
},
|
||||||
"multi_instance": true,
|
"multi_instance": true,
|
||||||
"services": [
|
"services": [
|
||||||
|
|
|
@ -30,7 +30,7 @@ ep_headings2_version=0.2.30
|
||||||
ep_markdown_version=0.1.36
|
ep_markdown_version=0.1.36
|
||||||
ep_page_view_version=0.5.24
|
ep_page_view_version=0.5.24
|
||||||
ep_spellcheck_version=0.0.28
|
ep_spellcheck_version=0.0.28
|
||||||
ep_subscript_and_superscript_version=0.2.29
|
ep_subscript_and_superscript_version=0.2.30
|
||||||
ep_table_of_contents_version=0.3.20
|
ep_table_of_contents_version=0.3.20
|
||||||
ep_font_size_version=0.4.23
|
ep_font_size_version=0.4.23
|
||||||
|
|
||||||
|
|
|
@ -211,8 +211,8 @@ chmod 600 $final_path/credentials.json
|
||||||
|
|
||||||
# Set files ownership to etherpad
|
# Set files ownership to etherpad
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod o-rwx $final_path
|
chmod o-rwx "$final_path"
|
||||||
chown -R $app: $final_path
|
chown -R $app: "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
|
@ -263,6 +263,7 @@ ynh_npm install ep_table_of_contents@${ep_table_of_contents_version} >> $install
|
||||||
# Framapad - User Pad Contents font size can be set in settings, this does not effect other peoples views
|
# Framapad - User Pad Contents font size can be set in settings, this does not effect other peoples views
|
||||||
ynh_npm install ep_font_size@${ep_font_size_version} >> $install_log 2>&1
|
ynh_npm install ep_font_size@${ep_font_size_version} >> $install_log 2>&1
|
||||||
popd
|
popd
|
||||||
|
|
||||||
chown -R $app: $final_path/node_modules
|
chown -R $app: $final_path/node_modules
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -133,8 +133,9 @@ ynh_exec_warn_less npm cache clean --force
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Restore permissions on app files
|
# Restore permissions on app files
|
||||||
chown -R $app: $final_path
|
chmod 750 "$final_path"
|
||||||
chmod o-rwx $final_path
|
chmod o-rwx "$final_path"
|
||||||
|
chown -R $app: "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADVERTISE SERVICE IN ADMIN PANEL
|
# ADVERTISE SERVICE IN ADMIN PANEL
|
||||||
|
|
|
@ -104,25 +104,25 @@ fi
|
||||||
# If overwrite_settings doesn't exist, create it
|
# If overwrite_settings doesn't exist, create it
|
||||||
if [ -z "$overwrite_settings" ]; then
|
if [ -z "$overwrite_settings" ]; then
|
||||||
overwrite_settings=1
|
overwrite_settings=1
|
||||||
ynh_app_setting_set $app overwrite_settings $overwrite_settings
|
ynh_app_setting_set --app=$app --key=overwrite_settings --value=$overwrite_settings
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If overwrite_credentials doesn't exist, create it
|
# If overwrite_credentials doesn't exist, create it
|
||||||
if [ -z "$overwrite_credentials" ]; then
|
if [ -z "$overwrite_credentials" ]; then
|
||||||
overwrite_credentials=1
|
overwrite_credentials=1
|
||||||
ynh_app_setting_set $app overwrite_credentials $overwrite_credentials
|
ynh_app_setting_set --app=$app --key=overwrite_credentials --value=$overwrite_credentials
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If overwrite_nginx doesn't exist, create it
|
# If overwrite_nginx doesn't exist, create it
|
||||||
if [ -z "$overwrite_nginx" ]; then
|
if [ -z "$overwrite_nginx" ]; then
|
||||||
overwrite_nginx=1
|
overwrite_nginx=1
|
||||||
ynh_app_setting_set $app overwrite_nginx $overwrite_nginx
|
ynh_app_setting_set --app=$app --key=overwrite_nginx --value=$overwrite_nginx
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If overwrite_systemd doesn't exist, create it
|
# If overwrite_systemd doesn't exist, create it
|
||||||
if [ -z "$overwrite_systemd" ]; then
|
if [ -z "$overwrite_systemd" ]; then
|
||||||
overwrite_systemd=1
|
overwrite_systemd=1
|
||||||
ynh_app_setting_set $app overwrite_systemd $overwrite_systemd
|
ynh_app_setting_set --app=$app --key=overwrite_systemd --value=$overwrite_systemd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cleaning legacy permissions
|
# Cleaning legacy permissions
|
||||||
|
|
Loading…
Add table
Reference in a new issue