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:
commit
4c0a35b137
4 changed files with 9 additions and 9 deletions
|
@ -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": {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue