mirror of
http://gitlab.bashclub.org/bashclub/zsync.git
synced 2024-11-22 03:03:09 +01:00
install scripts
This commit is contained in:
parent
d7ed15d2dd
commit
b63c3c3924
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
|
||||
|
||||
if [ ! -d /var/log/bashclub-zsync ]; then
|
||||
mkdir -p /var/log/bashclub-zsync
|
||||
fi
|
@ -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
|
Loading…
Reference in New Issue
Block a user