From ce36ac2c8cbd27bb35956552e35607e924d2046f Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 26 Mar 2014 01:20:51 +0100 Subject: fix refresh_shares script --- .../etc/systemd/system/getty@tty1.service/run_krebs_secret.conf | 3 +++ filehooker/root-image/krebs/etc/Reaktor/commands/refresh_shares | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 filehooker/root-image/etc/systemd/system/getty@tty1.service/run_krebs_secret.conf diff --git a/filehooker/root-image/etc/systemd/system/getty@tty1.service/run_krebs_secret.conf b/filehooker/root-image/etc/systemd/system/getty@tty1.service/run_krebs_secret.conf new file mode 100644 index 00000000..b2493294 --- /dev/null +++ b/filehooker/root-image/etc/systemd/system/getty@tty1.service/run_krebs_secret.conf @@ -0,0 +1,3 @@ +[Service] +ExecStart= +ExecStart=-/usr/bin/agetty --autologin hooker --noclear -l /krebs/bin/add-reaktor-secret.sh %I 38400 linux diff --git a/filehooker/root-image/krebs/etc/Reaktor/commands/refresh_shares b/filehooker/root-image/krebs/etc/Reaktor/commands/refresh_shares index aaf7ad77..1005998b 100755 --- a/filehooker/root-image/krebs/etc/Reaktor/commands/refresh_shares +++ b/filehooker/root-image/krebs/etc/Reaktor/commands/refresh_shares @@ -1,4 +1,4 @@ #!/bin/sh - +ncdc_user=hooker sudo /krebs/bin/refresh-shares.ship 2>&1 sudo -u $ncdc_user /krebs/bin/update-search.sh 2>&1 -- cgit v1.2.3