1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cryptpad_ynh.git synced 2024-09-03 18:26:14 +02:00
This commit is contained in:
ericgaspar 2021-05-25 22:27:59 +02:00
parent 4c864199ac
commit ea5978b1c4
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 4 additions and 16 deletions

View file

@ -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
#================================================= #=================================================

View file

@ -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
#================================================= #=================================================