This commit is contained in:
gyurix
2024-11-27 12:15:30 +01:00
parent d7ed7cb593
commit 3d3e52665c

View File

@@ -248,9 +248,9 @@ check_dirs_and_files() {
mkdir -p /var/tmp/shared/output mkdir -p /var/tmp/shared/output
fi fi
# Setting file and directory permssion # Setting file and directory permssion
chown -R 65534:65534 /var/tmp/shared chown -R 65534:65534 /var/tmp/shared
chmod -R g+rws /var/tmp/shared chmod -R g+rws /var/tmp/shared
setfacl -d -m g:65534:rw /var/tmp/shared setfacl -d -m g:65534:rw /var/tmp/shared
if [ ! -d "/etc/user/config/services/" ]; then if [ ! -d "/etc/user/config/services/" ]; then
mkdir /etc/user/config/services/ mkdir /etc/user/config/services/
@@ -934,28 +934,6 @@ if [[ "$WS" == "" && "$RS" == "" ]]; then
fi fi
# poll redis infinitely for scheduler jobs
#check_redis_availability $REDIS_SERVER $REDIS_PORT $CURL_RETRIES $CURL_SLEEP_SHORT
#echo $(date)" Scheduler initialized, starting listening for events"
# STARTING SCHEDULER PROCESSES
# Initial parameters
DATE=$(date +%F-%H-%M-%S)
# Set env variables
DIR=$SHARED/input
# Triggers by certificate or domain config changes
unset IFS
inotifywait --exclude "\.(swp|tmp)" -m -e CREATE,CLOSE_WRITE,DELETE,MOVED_TO -r $DIR |
while read dir op file; do
if [ "${op}" == "CLOSE_WRITE,CLOSE" ]; then
echo "new file created: $file"
fi
done
# STARTING SCHEDULER PROCESSES # STARTING SCHEDULER PROCESSES
# Initial parameters # Initial parameters
DATE=$(date +%F-%H-%M-%S) DATE=$(date +%F-%H-%M-%S)