-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.sh
More file actions
25 lines (16 loc) · 676 Bytes
/
Copy pathuser.sh
File metadata and controls
25 lines (16 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# Sources the common functions script to use shared utilities.
source ./common.sh
app_name="user"
# Sets the application name to "user" for consistent logging and validation.
check_root
# Sets up the roboshop application by creating a user, preparing the directory, downloading, and extracting the application files.
setup_app
# Installs Node.js by enabling the correct module and validating the installation.
setup_nodejs
# Sets up systemd service by copying, reloading daemon, and validating.
setup_systemd
# Enables and starts the given system service, with validation.
setup_service "user"
# Prints the total execution time of the script.
print_time