Skip to content

Commit

Permalink
Create required file and correct path for running app
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmarklloyd committed Apr 19, 2021
1 parent 7421df9 commit c752696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ cp ${archive_path}/private/* ${install_dir}/private/
echo -n ${latestVersion} > ${install_dir}/public/version
echo -n ${latestVersion} > ${install_dir}/public/latestVersion
mv ${archive_path}/pi-alarm ${install_dir}/
touch /home/pi/state.yml

# Configure Heroku to get secrets
echo "Enter the Heroku app name that contains the configuration secrets:"
Expand Down
2 changes: 1 addition & 1 deletion install/pi-alarm.service.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ After=network.target
WantedBy=multi-user.target

[Service]
ExecStart=/home/pi/run.sh
ExecStart=/home/pi/install/run.sh
WorkingDirectory=/home/pi/
StandardOutput=inherit
StandardError=inherit
Expand Down

0 comments on commit c752696

Please sign in to comment.