Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
Restyaboard
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Ali Arshad
Restyaboard
Commits
3e0095ed
Commit
3e0095ed
authored
Mar 28, 2017
by
Christophe Angeli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix crontab
parent
f24443b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
15 deletions
+8
-15
Dockerfile
Dockerfile
+3
-0
docker-entrypoint.sh
docker-entrypoint.sh
+5
-15
No files found.
Dockerfile
View file @
3e0095ed
...
@@ -76,6 +76,9 @@ RUN addgroup -g 82 -S www-data ; \
...
@@ -76,6 +76,9 @@ RUN addgroup -g 82 -S www-data ; \
chmod
-R
777
${
ROOT_DIR
}
/media
&&
\
chmod
-R
777
${
ROOT_DIR
}
/media
&&
\
chmod
-R
777
${
ROOT_DIR
}
/client/img
&&
\
chmod
-R
777
${
ROOT_DIR
}
/client/img
&&
\
chmod
-R
777
${
ROOT_DIR
}
/tmp
&&
\
chmod
-R
777
${
ROOT_DIR
}
/tmp
&&
\
chmod +x
${
ROOT_DIR
}
/server/php/shell/
*
.sh
&&
\
sed
-i
"s|bin/bash|bin/sh|"
${
ROOT_DIR
}
/server/php/shell/
*
.sh
&&
\
sed
-i
"s|php |php7 |g"
${
ROOT_DIR
}
/server/php/shell/
*
.sh
&&
\
chown
-R
www-data:www-data /var/lib/nginx
&&
\
chown
-R
www-data:www-data /var/lib/nginx
&&
\
mkdir
-p
/run/nginx
&&
\
mkdir
-p
/run/nginx
&&
\
mkdir
-p
/run/php
mkdir
-p
/run/php
...
...
docker-entrypoint.sh
View file @
3e0095ed
...
@@ -65,21 +65,11 @@ fi
...
@@ -65,21 +65,11 @@ fi
set
-e
set
-e
# cron shell
# cron shell
cp
${
ROOT_DIR
}
/server/php/shell/instant_email_notification.sh
${
ROOT_DIR
}
/server/php/shell/instant_email_notification
echo
"*/5 * * * *
${
ROOT_DIR
}
/server/php/shell/instant_email_notification.sh"
>>
/var/spool/cron/crontabs/root
cp
${
ROOT_DIR
}
/server/php/shell/periodic_email_notification.sh
${
ROOT_DIR
}
/server/php/shell/periodic_email_notification
echo
"0 * * * *
${
ROOT_DIR
}
/server/php/shell/periodic_email_notification.sh"
>>
/var/spool/cron/crontabs/root
cp
${
ROOT_DIR
}
/server/php/shell/imap.sh
${
ROOT_DIR
}
/server/php/shell/imap
echo
"*/30 * * * *
${
ROOT_DIR
}
/server/php/shell/imap.sh"
>>
/var/spool/cron/crontabs/root
cp
${
ROOT_DIR
}
/server/php/shell/webhook.sh
${
ROOT_DIR
}
/server/php/shell/webhook
echo
"*/5 * * * *
${
ROOT_DIR
}
/server/php/shell/webhook.sh"
>>
/var/spool/cron/crontabs/root
cp
${
ROOT_DIR
}
/server/php/shell/card_due_notification.sh
${
ROOT_DIR
}
/server/php/shell/card_due_notification
echo
"*/5 * * * *
${
ROOT_DIR
}
/server/php/shell/card_due_notification.sh"
>>
/var/spool/cron/crontabs/root
sed
-i
"s#bin/bash#bin/sh#"
${
ROOT_DIR
}
/server/php/shell/instant_email_notification
sed
-i
"s#bin/bash#bin/sh#"
${
ROOT_DIR
}
/server/php/shell/periodic_email_notification
sed
-i
"s#bin/bash#bin/sh#"
${
ROOT_DIR
}
/server/php/shell/imap
sed
-i
"s#bin/bash#bin/sh#"
${
ROOT_DIR
}
/server/php/shell/webhook
sed
-i
"s#bin/bash#bin/sh#"
${
ROOT_DIR
}
/server/php/shell/card_due_notification
echo
"*/5 * * * *
${
ROOT_DIR
}
/server/php/shell/instant_email_notification"
>>
/var/spool/cron/crontabs/root
echo
"0 * * * *
${
ROOT_DIR
}
/server/php/shell/periodic_email_notification"
>>
/var/spool/cron/crontabs/root
echo
"*/30 * * * *
${
ROOT_DIR
}
/server/php/shell/imap"
>>
/var/spool/cron/crontabs/root
echo
"*/5 * * * *
${
ROOT_DIR
}
/server/php/shell/webhook"
>>
/var/spool/cron/crontabs/root
echo
"*/5 * * * *
${
ROOT_DIR
}
/server/php/shell/card_due_notification"
>>
/var/spool/cron/crontabs/root
# service start
# service start
crond
crond
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment