File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ sudo chown -R geotab-api-adapter:geotab-api-adapter /opt/geotab
2828# Download geotab
2929sudo -u geotab-api-adapter wget " https://github.com/Geotab/mygeotab-api-adapter/releases/download/$APP_VERSION /MyGeotabAPIAdapter_SCD_linux-x64.zip"
3030sudo -u geotab-api-adapter unzip MyGeotabAPIAdapter_SCD_linux-x64
31- sudo -u geotab-api-adapter chmod +x ./MyGeotabAPIAdapter_SCD_linux-x64/ MyGeotabAPIAdapter
32- envsubst < " /home/ec2-user/${APP_NAME} -iac/server/templates/appsettings.json" | sudo -u geotab-api-adapter tee ./MyGeotabAPIAdapter_SCD_linux-x64/ appsettings.json > /dev/null
31+ sudo -u geotab-api-adapter chmod +x ./MyGeotabAPIAdapter
32+ envsubst < " /home/ec2-user/${APP_NAME} -iac/server/templates/appsettings.json" | sudo -u geotab-api-adapter tee ./appsettings.json > /dev/null
3333sudo cp " /home/ec2-user/${APP_NAME} -iac/server/templates/mygeotabadapter.service" /etc/systemd/system/mygeotabadapter.service
3434
3535# Enable and start geotab service
Original file line number Diff line number Diff line change 22Description =MyGeotab API Adapter
33
44[Service]
5- ExecStart =/opt/geotab/MyGeotabAPIAdapter_SCD_linux-x64/ MyGeotabAPIAdapter
6- WorkingDirectory =/opt/geotab/MyGeotabAPIAdapter_SCD_linux-x64
5+ ExecStart =/opt/geotab/MyGeotabAPIAdapter
6+ WorkingDirectory =/opt/geotab
77User =geotab-api-adapter
88Restart =always
99RestartSec =10
You can’t perform that action at this time.
0 commit comments