Skip to content

Commit 3fba519

Browse files
authored
Update geotab zip directory structure (#36)
1 parent 2deae7c commit 3fba519

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

server/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ sudo chown -R geotab-api-adapter:geotab-api-adapter /opt/geotab
2828
# Download geotab
2929
sudo -u geotab-api-adapter wget "https://github.com/Geotab/mygeotab-api-adapter/releases/download/$APP_VERSION/MyGeotabAPIAdapter_SCD_linux-x64.zip"
3030
sudo -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
3333
sudo cp "/home/ec2-user/${APP_NAME}-iac/server/templates/mygeotabadapter.service" /etc/systemd/system/mygeotabadapter.service
3434

3535
# Enable and start geotab service

server/templates/mygeotabadapter.service

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Description=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
77
User=geotab-api-adapter
88
Restart=always
99
RestartSec=10

0 commit comments

Comments
 (0)