install: Update script to get the current username

This commit is contained in:
jordanruthe committed 2020-11-29 10:28:48 -05:00
1 parent 67d61d164c
commit 90950101d8
2 files changed
+2 -2

No files matched your search

+1
View File
@@ -41,6 +41,7 @@ install_systemd_service()
KSPATH_ESC=$(sed "s/\//\\\\\//g" <<< $KSPATH)
KSENV_ESC=$(sed "s/\//\\\\\//g" <<< $KSENV)
SERVICE=$(sed "s/KS_USER/$USER/g" <<< $SERVICE)
SERVICE=$(sed "s/KS_ENV/$KSENV_ESC/g" <<< $SERVICE)
SERVICE=$(sed "s/KS_DIR/$KSPATH_ESC/g" <<< $SERVICE)
+1 -2
View File
@@ -7,10 +7,9 @@ StartLimitIntervalSec=0
Type=simple
Restart=always
RestartSec=1
User=pi
User=KS_USER
WorkingDirectory=KS_DIR
ExecStart=/usr/bin/xinit KS_ENV/bin/python KS_DIR/screen.py
ExecStartPost=KS_DIR/scripts/disablescreenblank.sh
[Install]
WantedBy=multi-user.target