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

change user to www-data

This commit is contained in:
Krakinou 2021-05-10 23:19:36 +02:00
parent 6a20b3f6cc
commit 1f4df22bbb
5 changed files with 10 additions and 10 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

@ -61,7 +61,7 @@ fi
change_path=0 change_path=0
if [ "$old_path" != "$new_path" ] if [ "$old_path" != "$new_path" ]
then then
ynh_print_warn "RetroArch works only on root path, path cannot be changed! ynh_print_warn "RetroArch works only on www-data path, path cannot be changed!
#change_path=1 #change_path=1
fi fi

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