Skip to content

Commit

Permalink
fixed setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayclifford345 committed Feb 19, 2025
1 parent 3f798e2 commit f17ce3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workshops/course-tracker-test/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ WorkingDirectory=$BIN_DIR
StandardOutput=journal
StandardError=journal
LimitNOFILE=65536
Environment=VM_UUID=$(cat /sys/class/dmi/id/product_uuid)
Environment=COURSE=course-tracker-test
[Install]
WantedBy=multi-user.target
EOF"


# Reload systemd, enable and start the service
echo "Enabling and starting the service..."
sudo systemctl daemon-reload
sudo systemctl enable "$SERVICE_NAME"
sudo systemctl start "$SERVICE_NAME"
export PROMPT_COMMAND='history -a'
echo "export VM_UUID=$(cat /sys/class/dmi/id/product_uuid)" | sudo tee -a /etc/profile
echo "export COURSE=course-tracker-test" | sudo tee -a /etc/profile
source /etc/profile

echo "Service $SERVICE_NAME has been installed and started successfully."

0 comments on commit f17ce3f

Please sign in to comment.