mirror of
https://github.com/YunoHost-Apps/aeneria_ynh.git
synced 2024-09-03 18:06:15 +02:00
fix
This commit is contained in:
parent
adc2a721a4
commit
de83d50a57
2 changed files with 5 additions and 3 deletions
|
@ -13,6 +13,7 @@ source /usr/share/yunohost/helpers
|
|||
# RETRIEVE ARGUMENTS FROM THE MANIFEST
|
||||
#=================================================
|
||||
|
||||
mail=$(ynh_user_get_info --username="$admin" --key='mail')
|
||||
deskey=$(ynh_string_random --length=24)
|
||||
ynh_app_setting_set --app=$app --key=deskey --value=$deskey
|
||||
|
||||
|
@ -24,8 +25,8 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
|||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$install_dir"
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
chmod -R 750 "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# SYSTEM CONFIGURATION
|
||||
|
@ -49,6 +50,7 @@ ynh_add_config --template=".env" --destination="$install_dir/.env"
|
|||
|
||||
# Restrict rights to aeneria user only
|
||||
chmod 600 "$install_dir/.env"
|
||||
chown $app:$app "$install_dir/.env"
|
||||
|
||||
#=================================================
|
||||
# INSTALL AENERIA
|
||||
|
@ -59,7 +61,6 @@ ynh_script_progression --message="Installing aeneria..." --weight=1
|
|||
pushd $install_dir
|
||||
ynh_exec_as $app php$phpversion bin/console aeneria:install "$app" -n
|
||||
# Create admin user
|
||||
mail=$(ynh_user_get_info --username="$admin" --key='mail')
|
||||
ynh_exec_as $app php$phpversion bin/console aeneria:user:add "$mail" "$(ynh_string_random)" -n
|
||||
ynh_exec_as $app php$phpversion bin/console aeneria:user:grant "$mail"
|
||||
popd
|
||||
|
|
|
@ -67,8 +67,8 @@ then
|
|||
ynh_secure_remove --file="$tmpdir"
|
||||
fi
|
||||
|
||||
chmod -R o-rwx "$install_dir"
|
||||
chown -R $app:www-data "$install_dir"
|
||||
chmod -R 750 "$install_dir"
|
||||
|
||||
#=================================================
|
||||
# REAPPLY SYSTEM CONFIGURATIONS
|
||||
|
@ -96,6 +96,7 @@ ynh_add_config --template=".env" --destination="$install_dir/.env"
|
|||
|
||||
# Restrict rights to aeneria user only
|
||||
chmod 600 "$install_dir/.env"
|
||||
chown $app:$app "$install_dir/.env"
|
||||
|
||||
#=================================================
|
||||
# UPGRADE AENERIA
|
||||
|
|
Loading…
Add table
Reference in a new issue