18 lines
376 B
Bash
18 lines
376 B
Bash
#!/bin/bash
|
|
|
|
if [ "$(id -u)" != "0" ]; then
|
|
echo -e "\033[31mThis script requires superuser rights\033[0m"
|
|
exit 0
|
|
fi
|
|
|
|
trap 'echo -e "\033[31mSomething went wrong\033[0m"; exit 1' ERR
|
|
set -e
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
bash files.sh
|
|
bash acme.sh
|
|
bash cleaner.sh
|
|
|
|
trap - ERR
|
|
echo "All files backups were made successfully. Outdated backups have been deleted" |