# install script function dialog1 { BACKUPFILE=$(whiptail --inputbox "Backup Dateiname ohne Endung " 8 78 Name --title "Dateiname" 3>&1 1>&2 2>&3) check_exit_status } function dialog2 { BACKUPZIEL=$(whiptail --inputbox "Backup Ziel?" 8 78 localhost --title "rsync Backupziel" 3>&1 1>&2 2>&3) check_exit_status } function check_exit_status { exitstatus=$? if [ $exitstatus = 1 ]; then echo "User selected Cancel." exit 1 fi } # Inhalt von backup.service function install_service { # das HERE Document darf nicht eingerückt sein. SERVICE=$(cat < /etc/systemd/system/backup.service systemctl enable --now backup.timer } #funktions aufrufe dialog1 dialog2 install_service