1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jupyterlab_ynh.git synced 2024-09-03 19:26:35 +02:00

Calm down package-lint

This commit is contained in:
Jules Bertholet 2021-05-31 16:59:41 -04:00
parent 09ec7626ba
commit 201d9a8905

View file

@ -110,10 +110,18 @@ systemctl enable $app.service --quiet
#=================================================
# RESTORE SUDOERS
#=================================================
ynh_script_progression --message="Restoring sudo configuration..." --weight=2
ynh_script_progression --message="Restoring sudoers configuration..." --weight=2
ynh_restore_file --origin_path="/etc/sudoers.d/$app-sudoers"
set_config_permissions
# Set permissions on app files
chmod 550 "$final_path/.venv/bin/sudospawner-singleuser"
chown -R $app:$app "$final_path"
chmod -R g=u,g-w,o-rwx "$final_path"
setfacl -nR -m g:$app.main:rx -m d:g:$app.main:rx "$final_path/.venv"
setfacl -n -m g:$app.main:x "$final_path"
chown root:root "/etc/sudoers.d/$app-sudoers"
chmod 440 "/etc/sudoers.d/$app-sudoers"
#=================================================
# ADVERTISE SERVICE IN ADMIN PANEL