Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8165b2d843 | ||
|
|
e480141e89 |
@@ -98,6 +98,7 @@ jobs:
|
||||
# 2. Create Directory Structure
|
||||
mkdir -p $BUILD_DIR/usr/bin
|
||||
mkdir -p $BUILD_DIR/usr/share/$PKG_NAME
|
||||
mkdir -p $BUILD_DIR/etc/systemd/system
|
||||
mkdir -p $BUILD_DIR/DEBIAN
|
||||
|
||||
# 3. Copy Files
|
||||
@@ -116,10 +117,12 @@ jobs:
|
||||
cat <<EOF > $BUILD_DIR/etc/systemd/system/$PKG_NAME.service
|
||||
[Unit]
|
||||
Description=Slideshow Application Service
|
||||
After=network.target
|
||||
After=graphical.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=DISPLAY=:0
|
||||
Environment=XAUTHORITY=/home/youruser/.Xauthority
|
||||
ExecStart=/usr/bin/$PKG_NAME
|
||||
WorkingDirectory=/usr/share/$PKG_NAME
|
||||
Restart=always
|
||||
@@ -146,10 +149,10 @@ jobs:
|
||||
#!/bin/sh
|
||||
# Check if .env exists in the target share folder
|
||||
if [ ! -f "/usr/share/$PKG_NAME/.env" ]; then
|
||||
echo "Creating new .env from template..."
|
||||
cp /usr/share/$PKG_NAME/.env.template /usr/share/$PKG_NAME/.env
|
||||
echo "Creating new .env from template..."
|
||||
cp /usr/share/$PKG_NAME/.env.template /usr/share/$PKG_NAME/.env
|
||||
else
|
||||
echo ".env already exists, skipping template copy to preserve settings."
|
||||
echo ".env already exists, skipping template copy to preserve settings."
|
||||
fi
|
||||
|
||||
echo "reload"
|
||||
|
||||
Reference in New Issue
Block a user