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

Remove recursion on chmod

This commit is contained in:
ericgaspar 2021-04-17 17:57:01 +02:00
parent 31e4362d47
commit ecab8cf83f
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 6 additions and 12 deletions

View file

@ -28,7 +28,7 @@ How to configure this app: From an admin panel.
## Documentation ## Documentation
* Official documentation: https://lycheeorg.github.io/docs/ * Official documentation: https://lycheeorg.github.io/docs/
* YunoHost documentation: https://yunohost.org/#/app_lychee * YunoHost documentation: https://yunohost.org/en/app_lychee
## YunoHost specific features ## YunoHost specific features

View file

@ -28,7 +28,7 @@ Comment configurer cette application : via le panneau d'administration.
## Documentation ## Documentation
* Documentation officielle : https://lycheeorg.github.io/docs/ * Documentation officielle : https://lycheeorg.github.io/docs/
* Documentation YunoHost : https://yunohost.org/#/app_lychee_fr * Documentation YunoHost : https://yunohost.org/fr/app_lychee
## Caractéristiques spécifiques YunoHost ## Caractéristiques spécifiques YunoHost

View file

@ -33,9 +33,6 @@ ynh_script_progression --message="Validating installation parameters..." --weigh
final_path=/var/www/$app final_path=/var/www/$app
test ! -e "$final_path" || ynh_die --message="This path already contains a folder" test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
# public_path=/home/yunohost.app/$app
# test ! -e "${public_path}" || ynh_die --message="${public_path} already exists"
# Register (book) web path # Register (book) web path
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url
@ -148,9 +145,9 @@ ynh_store_file_checksum "$final_path/.env"
# Set permissions to app files # Set permissions to app files
chown -R $app: $final_path chown -R $app: $final_path
chmod -R 750 $final_path/bootstrap/cache chmod 750 $final_path/bootstrap/cache
chown -R $app: $public_path chown -R $app: $public_path
chmod -R 750 $public_path chmod 750 $public_path
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT

View file

@ -157,9 +157,6 @@ ynh_script_progression --message="Building..."
# Setup application config # Setup application config
ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env" ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env"
# Setup custom user.css file
#cp ../conf/user.css.example $final_path/public/dist/user.css
#================================================= #=================================================
# INSTALL AND INITIALIZE COMPOSER # INSTALL AND INITIALIZE COMPOSER
#================================================= #=================================================
@ -180,9 +177,9 @@ fi
# Set permissions to app files # Set permissions to app files
chown -R $app: $final_path chown -R $app: $final_path
chmod -R 750 $final_path/bootstrap/cache chmod 750 $final_path/bootstrap/cache
chown -R $app: $public_path chown -R $app: $public_path
chmod -R 750 $public_path chmod 750 $public_path
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX