diff --git a/systemd/script/crontab.sh b/systemd/script/crontab.sh index cffea1f7..99c21677 100644 --- a/systemd/script/crontab.sh +++ b/systemd/script/crontab.sh @@ -68,16 +68,23 @@ force_sync(){ # when websoft9 restart, force sync cockpit port and certs force_sync -# monitor cockpit.socket and config.ini, make sure port at config.ins sync to cockpit.socket -inotifywait -e modify,attrib -m $FILES | while read PATH EVENT FILE; do - echo "Reset cockpit port when config.ini changed" - export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH - sync_cockpit_port -done +( + # monitor cockpit.socket and config.ini, make sure port at config.ins sync to cockpit.socket + inotifywait -e modify,attrib -m $FILES | while read PATH EVENT FILE; do + echo "Reset cockpit port when config.ini changed" + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH + sync_cockpit_port + done +) & -# monitor cockpit ssl path and sync to NPM ssl path if changed -inotifywait -e create,modify,delete,attrib -m $cockpit_ssl_path | while read PATH EVENT FILE; do - echo "Sync CA files from cockipt to NPM when changed" - export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH - cp -r "${cockpit_ssl_path}"* $npm_ssl_path -done \ No newline at end of file +( + # monitor cockpit ssl path and sync to NPM ssl path if changed + inotifywait -e create,modify,delete,attrib -m $cockpit_ssl_path | while read PATH EVENT FILE; do + echo "Sync CA files from cockipt to NPM when changed" + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH + cp -r "${cockpit_ssl_path}"* $npm_ssl_path + done +) & + +# Wait for background processes to finish +wait \ No newline at end of file diff --git a/version.json b/version.json index c4fdadd3..79599450 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "version": "2.1.18-rc4", + "version": "2.1.18-rc5", "plugins": { "portainer": "0.1.3", "nginx": "0.1.0",