mirror of
https://github.com/YunoHost-Apps/invidious_ynh.git
synced 2024-09-03 19:15:55 +02:00
Fix permissions
This commit is contained in:
parent
41a13dc2f9
commit
f5b370168f
5 changed files with 8 additions and 6 deletions
|
@ -39,8 +39,8 @@ You can configure Invidious by modifying the configuration file `/var/www/invidi
|
|||
|
||||
#### Supported architectures
|
||||
|
||||
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/invidious/)
|
||||
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/invidious/)
|
||||
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/invidious/)
|
||||
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/invidious/)
|
||||
|
||||
## Limitations
|
||||
|
||||
|
|
|
@ -39,8 +39,8 @@ Vous pouvez configurer Invidious en modifiant le fichier de configuration `/var/
|
|||
|
||||
#### Architectures supportées
|
||||
|
||||
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/invidious/)
|
||||
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/invidious/)
|
||||
* x86-64 - [](https://ci-apps.yunohost.org/ci/apps/invidious/)
|
||||
* ARMv8-A - [](https://ci-apps-arm.yunohost.org/ci/apps/invidious/)
|
||||
|
||||
## Limitations
|
||||
|
||||
|
|
|
@ -147,6 +147,7 @@ ynh_add_systemd_config
|
|||
ynh_script_progression --message="Setuping a cron..." --weight=1
|
||||
|
||||
ynh_add_config --template="../conf/cron_invidious" --destination="/etc/cron.d/$app"
|
||||
chmod 0644 /etc/logrotate.d/$app
|
||||
|
||||
#=================================================
|
||||
# SETUP LOGROTATE
|
||||
|
@ -165,7 +166,7 @@ ynh_script_progression --message="Securing files and directories..." --weight=1
|
|||
|
||||
# Set permissions to app files
|
||||
chown -R $app: $final_path
|
||||
chmod 0644 /etc/logrotate.d/$app
|
||||
chmod -R 755 $final_path/bin
|
||||
chmod 600 $final_path/config/config.yml
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -74,6 +74,7 @@ ynh_script_progression --message="Restoring user rights..."
|
|||
|
||||
# Restore permissions on app files
|
||||
chown -R $app: $final_path
|
||||
chmod -R 755 $final_path/bin
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC RESTORATION
|
||||
|
|
|
@ -149,7 +149,7 @@ ynh_script_progression --message="Securing files and directories..." --weight=1
|
|||
|
||||
# Set permissions on app files
|
||||
chown -R $app: $final_path
|
||||
chmod 0644 /etc/logrotate.d/$app
|
||||
chmod -R 755 $final_path/bin
|
||||
chmod 600 $final_path/config/config.yml
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue