1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/retroarch_ynh.git synced 2024-09-03 20:16:12 +02:00

Merge pull request #2 from YunoHost-Apps/testing

Changing owner to www-data
This commit is contained in:
Krakinou 2021-05-11 21:15:53 +02:00 committed by GitHub
commit 4c0a35b137
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View file

@ -6,7 +6,7 @@
"en": "Emulate videogames system and play videogames through your web browser... and more!", "en": "Emulate videogames system and play videogames through your web browser... and more!",
"fr": "Emulez des consoles de jeux et jouer à ces jeux vidéos dans votre explorateur web... Et beaucoup plus!" "fr": "Emulez des consoles de jeux et jouer à ces jeux vidéos dans votre explorateur web... Et beaucoup plus!"
}, },
"version": "1.9.1~ynh1", "version": "1.9.1~ynh2",
"url": "http://www.retroarch.com/", "url": "http://www.retroarch.com/",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"maintainer": { "maintainer": {

View file

@ -94,12 +94,12 @@ chmod 666 $final_path/assets/cores/Game/README
#setup indexer bash script #setup indexer bash script
ynh_add_config --template="../conf/indexer.sh" --destination="$final_path/indexer.sh" ynh_add_config --template="../conf/indexer.sh" --destination="$final_path/indexer.sh"
chown root: $final_path/indexer.sh chown www-data: $final_path/indexer.sh
chmod 744 $final_path/indexer.sh chmod 744 $final_path/indexer.sh
#setup cron file #setup cron file
cron_path="/etc/cron.d/$app" cron_path="/etc/cron.d/$app"
ynh_add_config --template="../conf/retroarch.cron" --destination="$cron_path" ynh_add_config --template="../conf/retroarch.cron" --destination="$cron_path"
chown root: "$cron_path" chown www-data: "$cron_path"
chmod 644 "$cron_path" chmod 644 "$cron_path"
#================================================= #=================================================
@ -119,12 +119,12 @@ fi
# Create a dedicated nginx config # Create a dedicated nginx config
ynh_add_nginx_config ynh_add_nginx_config
### For security reason, any app should set the permissions to root: before anything else. ### For security reason, any app should set the permissions to www-data: before anything else.
### Then, if write authorization is needed, any access should be given only to directories ### Then, if write authorization is needed, any access should be given only to directories
### that really need such authorization. ### that really need such authorization.
# Set permissions to app files # Set permissions to app files
chown -R root: $final_path chown -R www-data: $final_path
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT

View file

@ -73,7 +73,7 @@ ynh_restore_file --origin_path="$final_path"
#================================================= #=================================================
# Restore permissions on app files # Restore permissions on app files
chown -R root: $final_path chown -R www-data: $final_path
#================================================= #=================================================
# SPECIFIC RESTORATION # SPECIFIC RESTORATION

View file

@ -73,12 +73,12 @@ fi
#setup indexer bash script #setup indexer bash script
ynh_add_config --template="../conf/indexer.sh" --destination="$final_path/indexer.sh" ynh_add_config --template="../conf/indexer.sh" --destination="$final_path/indexer.sh"
chown root: $final_path/indexer.sh chown www-data: $final_path/indexer.sh
chmod 744 $final_path/indexer.sh chmod 744 $final_path/indexer.sh
#setup cron file #setup cron file
cron_path="/etc/cron.d/$app" cron_path="/etc/cron.d/$app"
ynh_add_config --template="../conf/retroarch.cron" --destination="$cron_path" ynh_add_config --template="../conf/retroarch.cron" --destination="$cron_path"
chown root: "$cron_path" chown www-data: "$cron_path"
chmod 644 "$cron_path" chmod 644 "$cron_path"
#================================================= #=================================================
@ -119,7 +119,7 @@ ynh_npm install -g coffeescript
# Set permissions on app files # Set permissions on app files
#================================================= #=================================================
# #
chown -R root: $final_path chown -R www-data: $final_path
#================================================= #=================================================