Compare commits

...

8 Commits

Author SHA1 Message Date
tteckster 16bdcb3cb1
Update pialert.sh
tweak
2023-09-18 00:40:54 -04:00
tteckster 97219fc7c2
Update pialert.sh
update
2023-09-18 00:38:38 -04:00
tteckster fc8ddc3a7c
Update pialert-install.sh
fix crontab
2023-09-17 23:53:59 -04:00
tteckster 3115e46e30
Update pialert-install.sh 2023-09-17 23:45:47 -04:00
tteckster fb57a5f0f1
Update pialert-install.sh 2023-09-17 23:24:00 -04:00
tteckster 35701cb845
Update pialert-install.sh
test
2023-09-17 22:54:31 -04:00
tteckster 3fd4a50078
Update pialert-install.sh
- added a new "update" command that allows you to execute updates for Pi.Alert.
- tweaks
2023-09-17 22:33:28 -04:00
tteckster 0042ec95cf
Update pialert.sh
increase storage
2023-09-17 22:13:11 -04:00
2 changed files with 10 additions and 6 deletions

View File

@ -19,7 +19,7 @@ EOF
header_info
echo -e "Loading..."
APP="PiAlert"
var_disk="3"
var_disk="6"
var_cpu="1"
var_ram="512"
var_os="debian"
@ -53,8 +53,8 @@ function default_settings() {
function update_script() {
header_info
if [[ ! -d /opt/pialert ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_error "There is currently no update path available."
exit
update
msg_ok "Updated $APP"
}
start

View File

@ -53,8 +53,8 @@ $STD pip3 install fritzconnection
$STD pip3 install cryptography
msg_ok "Installed Python Dependencies"
msg_info "Installing Pi.Alert (Patience)"
git clone -q https://github.com/leiweibau/Pi.Alert.git /opt/pialert
msg_info "Installing Pi.Alert"
curl -sL https://github.com/leiweibau/Pi.Alert/raw/main/tar/pialert_latest.tar | tar xvf - -C /opt >/dev/null 2>&1
mkdir -p /opt/pialert/front/reports
rm -rf /var/www/html/index.html
mv /var/www/html/index.lighttpd.html /var/www/html/index.lighttpd.html.old
@ -69,9 +69,13 @@ dest_dir="/opt/pialert/front/php/server"
for file in pialert.vendors.log pialert.IP.log pialert.1.log pialert.cleanup.log pialert.webservices.log; do
ln -s "$src_dir/$file" "$dest_dir/$file"
done
git config --global --add safe.directory /opt/pialert
sed -i 's#PIALERT_PATH\s*=\s*'\''/home/pi/pialert'\''#PIALERT_PATH = '\''/opt/pialert'\''#' /opt/pialert/config/pialert.conf
sed -i 's/~/\/opt/g' /opt/pialert/install/pialert.cron
(crontab -l 2>/dev/null; cat /opt/pialert/install/pialert.cron) | crontab -
crontab /opt/pialert/install/pialert.cron
cp -R /opt/pialert/install/pialert_update.sh /usr/bin/update
sed -i 's/~/\/opt/g' /usr/bin/update
chmod +x /usr/bin/update
echo "python3 /opt/pialert/back/pialert.py 1" >/usr/bin/scan
chmod +x /usr/bin/scan
echo "/opt/pialert/back/pialert-cli set_permissions --lxc" >/usr/bin/permissions