mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
check if update script for selfHOST was downloaded
This commit is contained in:
@@ -308,10 +308,19 @@ function install_run_selfhost {
|
|||||||
# https://carol.selfhost.de/update?username=123456&password=supersafe
|
# https://carol.selfhost.de/update?username=123456&password=supersafe
|
||||||
#
|
#
|
||||||
# the prefered way
|
# the prefered way
|
||||||
wget --output-document=$selfhostdir/$selfhostscript https://jonaspasche.de/selfhost-updater
|
if [ ! -f $selfhostdir/$selfhostscript ]
|
||||||
echo "router" > $selfhostdir/device
|
then
|
||||||
echo "$selfhost_user" > $selfhostdir/user
|
wget --output-document=$selfhostdir/$selfhostscript https://jonaspasche.de/selfhost-updater
|
||||||
echo "$selfhost_pass" > $selfhostdir/pass
|
if [ ! -s $selfhostdir/$selfhostscript ]
|
||||||
|
then
|
||||||
|
die "Failed to download selfHOST file for dynDNS"
|
||||||
|
fi
|
||||||
|
echo "router" > $selfhostdir/device
|
||||||
|
echo "$selfhost_user" > $selfhostdir/user
|
||||||
|
echo "$selfhost_pass" > $selfhostdir/pass
|
||||||
|
print_info "Wrote file to update dynamic IP. File: $selfhostdir/$selfhostscript"
|
||||||
|
fi
|
||||||
|
print_info "executing $selfhostdir/$selfhostscript update..."
|
||||||
bash $selfhostdir/$selfhostscript update
|
bash $selfhostdir/$selfhostscript update
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user