Quick add to the install script

This commit is contained in:
deajan 2015-09-08 12:37:37 +02:00
parent 5e6396b5d4
commit 596c3ef9e8
1 changed files with 7 additions and 3 deletions

View File

@ -1,9 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
SCRIPT_BUILD=2015072201 SCRIPT_BUILD=2015090801
## Osync daemon install script ## Osync daemon install script
## Tested on RHEL / CentOS 6 & 7 ## Tested on RHEL / CentOS 6 & 7 and Mint 17
## Please adapt this to fit your distro needs ## Please adapt this to fit your distro needs
if [ "$(whoami)" != "root" ] if [ "$(whoami)" != "root" ]
@ -12,7 +12,11 @@ then
exit 1 exit 1
fi fi
if [ ! -d /etc/osync ]
then
mkdir /etc/osync mkdir /etc/osync
fi
cp ./sync.conf /etc/osync/sync.conf.example cp ./sync.conf /etc/osync/sync.conf.example
cp ./exclude.list.example /etc/osync cp ./exclude.list.example /etc/osync
cp ./osync.sh /usr/local/bin cp ./osync.sh /usr/local/bin