install: Update script to get the current username
This commit is contained in:
1 parent
67d61d164c
commit
90950101d8
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user