install scripts

This commit is contained in:
thorsten.spille 2024-02-09 22:41:30 +01:00
parent d7ed15d2dd
commit b63c3c3924
2 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash #!/bin/bash
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
if [ ! -d /var/log/bashclub-zsync ]; then if [ ! -d /var/log/bashclub-zsync ]; then
mkdir -p /var/log/bashclub-zsync mkdir -p /var/log/bashclub-zsync
fi fi

View File

@ -1 +1,12 @@
#!/bin/bash #!/bin/bash
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
# check if script is installed manually on system and rename an remove execute flag
if ! dpkg -l bashclub-zsync > /dev/null 2>&1; then
if which bashclub-zsync > /dev/null 2>&1; then
zsync=$(which bashclub-zsync)
mv ${zsync} ${zsync}.legacy
chmod -x ${zsync}.legacy
fi
fi