mirror of
https://github.com/deajan/obackup.git
synced 2025-01-12 23:23:53 +01:00
Fixed forgotten git / values
This commit is contained in:
parent
7ed0e71ab4
commit
6a4c56b939
@ -3,7 +3,7 @@
|
|||||||
PROGRAM=obackup
|
PROGRAM=obackup
|
||||||
PROGRAM_BINARY=$PROGRAM".sh"
|
PROGRAM_BINARY=$PROGRAM".sh"
|
||||||
PROGRAM_BATCH=$PROGRAM"-batch.sh"
|
PROGRAM_BATCH=$PROGRAM"-batch.sh"
|
||||||
SCRIPT_BUILD=2016032201
|
SCRIPT_BUILD=2016032202
|
||||||
|
|
||||||
## osync / obackup daemon install script
|
## osync / obackup daemon install script
|
||||||
## Tested on RHEL / CentOS 6 & 7, Fedora 23, Debian 7 & 8, Mint 17 and FreeBSD 8 & 10
|
## Tested on RHEL / CentOS 6 & 7, Fedora 23, Debian 7 & 8, Mint 17 and FreeBSD 8 & 10
|
||||||
@ -33,8 +33,8 @@ case $local_os_var in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
if [ "$(whoami)" != "root" ]; then
|
if [ "$(whoami)" != "$USER" ]; then
|
||||||
echo "Must be run as root."
|
echo "Must be run as $USER."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -90,7 +90,7 @@ if [ -f "./ssh_filter.sh" ]; then
|
|||||||
echo "Cannot copy ssh_filter.sh to [$BIN_DIR]."
|
echo "Cannot copy ssh_filter.sh to [$BIN_DIR]."
|
||||||
else
|
else
|
||||||
chmod 755 "$BIN_DIR/ssh_filter.sh"
|
chmod 755 "$BIN_DIR/ssh_filter.sh"
|
||||||
chown root:root "$BIN_DIR/ssh_filter.sh"
|
chown $USER:$GROUP "$BIN_DIR/ssh_filter.sh"
|
||||||
echo "Copied ssh_filter.sh to [$BIN_DIR]."
|
echo "Copied ssh_filter.sh to [$BIN_DIR]."
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user