Github bot : script beautyshied

This commit is contained in:
github-actions
2023-03-12 00:13:08 +00:00
parent 55fc161644
commit fa92ae21de
2 changed files with 9 additions and 9 deletions

View File

@@ -4,25 +4,25 @@
# Clean nginx files at each reboot # Clean nginx files at each reboot
echo "Cleaning files" echo "Cleaning files"
for var in /data/config/nginx /data/config/crontabs /data/config/logs; do for var in /data/config/nginx /data/config/crontabs /data/config/logs; do
if [ -d "$var" ]; then rm -r "$var"; fi if [ -d "$var" ]; then rm -r "$var"; fi
done done
# Make links between logs and docker # Make links between logs and docker
echo "Setting logs" echo "Setting logs"
for var in /data/config/log/nginx/error.log /data/config/log/nginx/access.log /data/config/log/php/error.log; do for var in /data/config/log/nginx/error.log /data/config/log/nginx/access.log /data/config/log/php/error.log; do
# Make sure directory exists # Make sure directory exists
mkdir -p "$(dirname "$var")" mkdir -p "$(dirname "$var")"
# Clean files # Clean files
if [ -f "$var" ]; then rm -r "$var"; fi if [ -f "$var" ]; then rm -r "$var"; fi
# Create symlink # Create symlink
ln -sf /proc/1/fd/1 "$var" ln -sf /proc/1/fd/1 "$var"
done done
# Add new log info to config.php # Add new log info to config.php
#for var in /defaults/config.php /data/config/www/nextcloud/config/config.php; do #for var in /defaults/config.php /data/config/www/nextcloud/config/config.php; do
# sed -i "/logfile/d" "$var" # sed -i "/logfile/d" "$var"
# sed -i "/log_type/d" "$var" # sed -i "/log_type/d" "$var"
# sed -i "/log_rotate_size/d" "$var" # sed -i "/log_rotate_size/d" "$var"
# sed -i "2a\ \ 'logfile' => '/data/config/log/nextcloud.log'," "$var" # sed -i "2a\ \ 'logfile' => '/data/config/log/nextcloud.log'," "$var"
# sed -i "2a\ \ 'log_type' => 'file'," "$var" # sed -i "2a\ \ 'log_type' => 'file'," "$var"
# sed -i "2a\ \ 'log_rotate_size' => 0," "$var" # sed -i "2a\ \ 'log_rotate_size' => 0," "$var"

View File

@@ -14,7 +14,7 @@ if [[ $($LAUNCHER -V) == *"not installed"* ]]; then
fi fi
if $LAUNCHER fulltextsearch:test &>/dev/null; then if $LAUNCHER fulltextsearch:test &>/dev/null; then
echo "Full Text Search is already working" echo "Full Text Search is already working"
############ ############
# BASED ON # # BASED ON #