Better scripting, and exit on git pull
This commit is contained in:
parent
3252e9744f
commit
7042ffbd63
1 changed files with 4 additions and 1 deletions
|
@ -12,7 +12,10 @@ function update_venv()
|
||||||
|
|
||||||
function git_pull_and_update_cron_and_restart_services_if_needed()
|
function git_pull_and_update_cron_and_restart_services_if_needed()
|
||||||
{
|
{
|
||||||
git pull &>/dev/null || sendxmpppy "[apps repo] Couldn't pull, maybe local changes are present?"
|
if ! git pull &>/dev/null; then
|
||||||
|
sendxmpppy "[apps repo] Couldn't pull, maybe local changes are present?"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Cron
|
# Cron
|
||||||
cat cron | sed "s@__BASEDIR__@$workdir@g" > /etc/cron.d/app_list
|
cat cron | sed "s@__BASEDIR__@$workdir@g" > /etc/cron.d/app_list
|
||||||
|
|
Loading…
Reference in a new issue