20 lines
519 B
Bash
Executable File
20 lines
519 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# RIBS installer
|
|
|
|
# test for superuser rights
|
|
if [[ $EUID -ne 0 ]]; then
|
|
echo "This script must be run with superuser privileges. Try sudo ./install.sh"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Copying new files."
|
|
sleep 2
|
|
rsync -av --chown=root:root dist/ /
|
|
chmod +x /usr/local/bin/ribs
|
|
chmod +x /usr/local/bin/run_ribs_backups
|
|
chmod 777 /var/log/ribs
|
|
echo "Installation complete. RIBS must have a config file to run. Refer to"
|
|
echo "/etc/ribs/conf-available/ribs.conf.sample."
|
|
echo "Type ribs -h or ribs --help for help."
|