mirror of
https://github.com/YunoHost-Apps/cryptpad_ynh.git
synced 2024-09-03 18:26:14 +02:00
fix
This commit is contained in:
parent
4c864199ac
commit
ea5978b1c4
2 changed files with 4 additions and 16 deletions
|
@ -131,13 +131,6 @@ pushd "$final_path" || ynh_die
|
||||||
ynh_exec_warn_less bower install --allow-root
|
ynh_exec_warn_less bower install --allow-root
|
||||||
popd || ynh_die
|
popd || ynh_die
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# Set some permissions
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Securing files and directories..." --weight=1
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -89,6 +89,10 @@ then
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config/config.js"
|
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/config/config.js"
|
||||||
|
|
||||||
|
chmod 750 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:$app "$final_path"
|
||||||
chmod 600 "$final_path/config/config.js"
|
chmod 600 "$final_path/config/config.js"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -137,15 +141,6 @@ ynh_replace_string --match_string="__YNH_NPM__" --replace_string="$ynh_npm" --ta
|
||||||
# Create a dedicated systemd config
|
# Create a dedicated systemd config
|
||||||
ynh_add_systemd_config
|
ynh_add_systemd_config
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# SECURE FILES AND DIRECTORIES
|
|
||||||
#=================================================
|
|
||||||
|
|
||||||
# Set permissions on app files
|
|
||||||
chmod 750 "$final_path"
|
|
||||||
chmod -R o-rwx "$final_path"
|
|
||||||
chown -R $app:$app "$final_path"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INTEGRATE SERVICE IN YUNOHOST
|
# INTEGRATE SERVICE IN YUNOHOST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue