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

Fix sqllite

This commit is contained in:
yalh76 2022-01-25 00:06:48 +01:00
parent 64e1782075
commit 332bcd2da8
3 changed files with 12 additions and 12 deletions

View file

@ -97,8 +97,8 @@ ynh_setup_source --dest_dir="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var"
setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var"
setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/"
setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/"
#=================================================
# NGINX CONFIGURATION
@ -130,8 +130,8 @@ ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands=
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var"
setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var"
setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/"
setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/"
#=================================================
# ADD A CONFIGURATION
@ -164,7 +164,7 @@ ynh_script_progression --message="Installing Kimai2..."
update-alternatives --set php /usr/bin/php$phpversion
pushd "$final_path"
php$phpversion bin/console kimai:install -n
ynh_exec_as $app php$phpversion bin/console kimai:install -n
popd
update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION}

View file

@ -70,8 +70,8 @@ ynh_restore_file --origin_path="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var"
setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var"
setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/"
setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/"
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION

View file

@ -130,8 +130,8 @@ fi
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var"
setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var"
setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/"
setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/"
#=================================================
# NGINX CONFIGURATION
@ -170,8 +170,8 @@ ynh_composer_exec --phpversion="$phpversion" --workdir="$final_path" --commands=
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var"
setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var"
setfacl -dR -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/"
setfacl -R -m g:"www-data":rwX -m u:$app:rwX "$final_path/var/"
#=================================================
# UPDATE A CONFIG FILE
@ -204,7 +204,7 @@ ynh_script_progression --message="Installing Kimai2..."
update-alternatives --set php /usr/bin/php$phpversion
pushd "$final_path"
php$phpversion bin/console kimai:update -n
ynh_exec_as $app php$phpversion bin/console kimai:update -n
popd
update-alternatives --set php /usr/bin/php${YNH_DEFAULT_PHP_VERSION}