Skip to content

Commit

Permalink
update systemd stuff to use local service file, if present
Browse files Browse the repository at this point in the history
  • Loading branch information
sfomuseumbot committed Jun 20, 2019
1 parent 2f07b2c commit ee21ad6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions systemd/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.service
12 changes: 10 additions & 2 deletions systemd/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,16 @@ do

if [ -f ${SERVICE} ]
then
cp ${SYSTEMD}/${SERVICE_FNAME}.example ${SERVICE}
sudo chmod 644 ${SERVICE}

if [ -f ${SYSTEMD}/${SERVICE_FNAME} ]
then
echo "Found a local ${SERVICE_FNAME} file so installing that"
cp ${SYSTEMD}/${SERVICE_FNAME} ${SERVICE}
else
cp ${SYSTEMD}/${SERVICE_FNAME}.example ${SERVICE}
fi

sudo chmod 644 ${SERVICE}

echo ""
echo "system stuff installed - you will still need to run the following, manually:"
Expand Down

0 comments on commit ee21ad6

Please sign in to comment.