Further minor fix for calcom.sh
This commit is contained in:
parent
addd62384d
commit
4f886ce799
BIN
lib/.roundcube.sh.swp
Normal file
BIN
lib/.roundcube.sh.swp
Normal file
Binary file not shown.
@ -1781,15 +1781,15 @@ start_calcom() {
|
|||||||
docker exec pdns pdnsutil add-record $DOMAIN calcom A 86400 $EXTERNALIP &> /dev/null
|
docker exec pdns pdnsutil add-record $DOMAIN calcom A 86400 $EXTERNALIP &> /dev/null
|
||||||
[ $? -ne 0 ] && fail "Couldn't add dns record for calcom"
|
[ $? -ne 0 ] && fail "Couldn't add dns record for calcom"
|
||||||
|
|
||||||
# Install cronjob
|
|
||||||
(crontab -l 2>/dev/null; echo "*/15 * * * * /federated/bin/sync-calcomusers > /dev/null 2>&1") | sort -u | crontab -
|
|
||||||
|
|
||||||
# Run sync-calcomusers
|
|
||||||
/federated/bin/sync-calcomusers --verbose
|
|
||||||
|
|
||||||
# Start service with command to make sure it's up before proceeding
|
# Start service with command to make sure it's up before proceeding
|
||||||
start_service "calcom" "nc -z 192.168.0.48 3000 &> /dev/null" "30"
|
start_service "calcom" "nc -z 192.168.0.48 3000 &> /dev/null" "30"
|
||||||
|
|
||||||
|
# Run sync-calcomusers for first time to remove first-time wizard
|
||||||
|
/federated/bin/sync-calcomusers --verbose
|
||||||
|
|
||||||
|
# Install cronjob
|
||||||
|
(crontab -l 2>/dev/null; echo "*/15 * * * * /federated/bin/sync-calcomusers > /dev/null 2>&1") | sort -u | crontab -
|
||||||
|
|
||||||
# kill -9 $SPINPID &> /dev/null
|
# kill -9 $SPINPID &> /dev/null
|
||||||
echo -ne "done."
|
echo -ne "done.\n"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user