1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pixelfed_ynh.git synced 2024-09-03 20:06:04 +02:00

Merge pull request #198 from YunoHost-Apps/testing

Better log file permissions + fix redis config + laravel log rotate
This commit is contained in:
lapineige 2023-03-25 18:27:01 +01:00 committed by GitHub
commit aa6b054b57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View file

@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Fetch the source code - name: Fetch the source code
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Run the updater script - name: Run the updater script
@ -33,7 +33,7 @@ jobs:
- name: Create Pull Request - name: Create Pull Request
id: cpr id: cpr
if: ${{ env.PROCEED == 'true' }} if: ${{ env.PROCEED == 'true' }}
uses: peter-evans/create-pull-request@v3 uses: peter-evans/create-pull-request@v4
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update to version ${{ env.VERSION }} commit-message: Update to version ${{ env.VERSION }}

View file

@ -71,7 +71,7 @@ DB_USERNAME=__DB_USER__
DB_PASSWORD=__DB_PWD__ DB_PASSWORD=__DB_PWD__
## Cache (Redis) ## Cache (Redis)
REDIS_CLIENT=predis REDIS_CLIENT=phpredis
REDIS_SCHEME=tcp REDIS_SCHEME=tcp
REDIS_HOST=127.0.0.1 REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null REDIS_PASSWORD=null

View file

@ -135,6 +135,7 @@ ynh_script_progression --message="Creating log file..." --weight=1
mkdir -p "/var/log/$app/" mkdir -p "/var/log/$app/"
touch "/var/log/$app/${app}-horizon.log" touch "/var/log/$app/${app}-horizon.log"
chown -R $app: "/var/log/$app/" chown -R $app: "/var/log/$app/"
chmod -R 600 "/var/log/$app/"
#================================================= #=================================================
# ADD A CONFIGURATION # ADD A CONFIGURATION
@ -194,6 +195,7 @@ ynh_script_progression --message="Configuring log rotation..." --weight=1
# Use logrotate to manage application logfile(s) # Use logrotate to manage application logfile(s)
ynh_use_logrotate --logfile="/var/log/$app/${app}-horizon.log" ynh_use_logrotate --logfile="/var/log/$app/${app}-horizon.log"
ynh_use_logrotate --logfile="/var/www/$app/storage/logs/laravel.log"
#================================================= #=================================================
# INTEGRATE SERVICE IN YUNOHOST # INTEGRATE SERVICE IN YUNOHOST

View file

@ -223,6 +223,7 @@ ynh_script_progression --message="Creating log file..." --weight=1
mkdir -p "/var/log/$app/" mkdir -p "/var/log/$app/"
touch "/var/log/$app/${app}-horizon.log" touch "/var/log/$app/${app}-horizon.log"
chown -R $app: "/var/log/$app/" chown -R $app: "/var/log/$app/"
chmod -R 600 "/var/log/$app/"
#================================================= #=================================================
# UPGRADE THE CRON FILE # UPGRADE THE CRON FILE