diff options
Diffstat (limited to 'personal-enabler/files')
-rw-r--r-- | personal-enabler/files/common.sh | 26 | ||||
-rw-r--r-- | personal-enabler/files/sentinel.sh | 10 |
2 files changed, 36 insertions, 0 deletions
diff --git a/personal-enabler/files/common.sh b/personal-enabler/files/common.sh new file mode 100644 index 0000000..b6469ee --- /dev/null +++ b/personal-enabler/files/common.sh @@ -0,0 +1,26 @@ +#!/bin/sh +hostname="$(uci get system.@system[0].hostname)" +case "$hostname" in + work-*) + mail="karel.koci@nic.cz" + ;; + *) + mail="cynerd@email.cz" + ;; +esac + +uci -q batch <<EOF + set updater.autorun.enable=1 + commit updater + + set user_notify.smtp.enable=1 + set user_notify.smtp.use_turris_smtp=1 + set user_notify.smtp.sender_name='${hostname}' + del_list user_notify.smtp.to='${mail}' + add_list user_notify.smtp.to='${mail}' + set user_notify.notifications.news=1 + set user_notify.notifications.severity=3 + set user_notify.reboot.delay='2' + set user_notify.time='03:30' + commit user_notify +EOF diff --git a/personal-enabler/files/sentinel.sh b/personal-enabler/files/sentinel.sh new file mode 100644 index 0000000..2fa31da --- /dev/null +++ b/personal-enabler/files/sentinel.sh @@ -0,0 +1,10 @@ +#!/bin/sh +uci -q batch <<EOF + del_list pkglists.pkglists.pkglist='datacollect' + add_list pkglists.pkglists.pkglist='datacollect' + commit pkglists + + set sentinel.main.agreed_with_eula_version='1' + commit sentinel.main +EOF +sentinel-reload |