mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Fixed a hyphen typo.
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
#!/bin/bash -eu
|
#!/bin/bash -eu
|
||||||
|
|
||||||
TESLAUSB_REPO=rtgoodwin
|
TESLAUSB_REPO=rtgoodwin
|
||||||
TESLAUSB_BRANCH=master
|
TESLAUSB_BRANCH=pushover
|
||||||
|
user_enabled_pushover=false
|
||||||
|
|
||||||
if [ "$(whoami)" != "root" ]
|
if [ "$(whoami)" != "root" ]
|
||||||
then
|
then
|
||||||
@@ -39,13 +40,16 @@ function check_pushover_enabled () {
|
|||||||
echo "STOP: You're trying to setup Pushover, but didn't replace the default User and App key values."
|
echo "STOP: You're trying to setup Pushover, but didn't replace the default User and App key values."
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "export pushover_enabled=true" > /root/bin/.teslaCamPushoverCredentials
|
user_enabled_pushover=true
|
||||||
|
echo "export pushover_enabled=true" > /root/.teslaCamPushoverCredentials
|
||||||
echo "export pushover_user_key=$pushover_user_key" >> /root/.teslaCamPushoverCredentials
|
echo "export pushover_user_key=$pushover_user_key" >> /root/.teslaCamPushoverCredentials
|
||||||
echo "export pushover_app_key=$pushover_app_key" >> /root/.teslaCamPushoverCredentials
|
echo "export pushover_app_key=$pushover_app_key" >> /root/.teslaCamPushoverCredentials
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_pushover_enabled
|
||||||
|
|
||||||
serverunreachable=false
|
serverunreachable=false
|
||||||
ping -c 1 -w 1 "$archiveserver" 1>/dev/null 2>&1 || serverunreachable=true
|
ping -c 1 -w 1 "$archiveserver" 1>/dev/null 2>&1 || serverunreachable=true
|
||||||
|
|
||||||
@@ -106,7 +110,13 @@ wget https://raw.githubusercontent.com/"$TESLAUSB_REPO"/teslausb/"$TESLAUSB_BRAN
|
|||||||
chmod +x archive-teslacam-clips
|
chmod +x archive-teslacam-clips
|
||||||
popd
|
popd
|
||||||
|
|
||||||
check_pushover_enabled
|
if [ ${user_enabled_pushover} = "true" ]
|
||||||
|
then
|
||||||
|
pushd /root/bin
|
||||||
|
wget https://raw.githubusercontent.com/"$TESLAUSB_REPO"/teslausb/"$TESLAUSB_BRANCH"/windows_archive/send-pushover
|
||||||
|
chmod +x archive-teslacam-clips
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
echo "#!/bin/bash -eu" > ~/rc.local
|
echo "#!/bin/bash -eu" > ~/rc.local
|
||||||
tail -n +2 /etc/rc.local | sed '$d' >> ~/rc.local
|
tail -n +2 /etc/rc.local | sed '$d' >> ~/rc.local
|
||||||
|
|||||||
Reference in New Issue
Block a user