summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-03-26 01:20:51 +0100
committermakefu <github@syntax-fehler.de>2014-03-26 01:20:51 +0100
commitce36ac2c8cbd27bb35956552e35607e924d2046f (patch)
tree97ef24cfa5021bff269b6eab2f6ed604ca33afd9
parent345e40a9be080f77945aaf8cbd11865ca834a035 (diff)
fix refresh_shares script
-rw-r--r--filehooker/root-image/etc/systemd/system/getty@tty1.service/run_krebs_secret.conf3
-rwxr-xr-xfilehooker/root-image/krebs/etc/Reaktor/commands/refresh_shares2
2 files changed, 4 insertions, 1 deletions
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