Adding to the setup script #10
- Change permissions on the whole project dir - Add an echo for better visibility
This commit is contained in:
@@ -72,6 +72,7 @@ echo "Installing npm dependencies..."
|
||||
npm install
|
||||
|
||||
# Generate .env file
|
||||
echo "Creating the config .env file..."
|
||||
echo "# Client Config" > .env
|
||||
echo "CLIENT_NUID=0" >> .env
|
||||
client_name=$(prompt_user "Enter the name for this node")
|
||||
@@ -151,6 +152,7 @@ echo "Cloning OP25 from the git repository..."
|
||||
git clone https://github.com/boatbod/op25.git
|
||||
|
||||
# Navigate to the OP25 directory
|
||||
$ogPwd = $(pwd)
|
||||
cd op25
|
||||
|
||||
# Edit the startup script to use the active.cfg.json config file generated by the app
|
||||
@@ -189,4 +191,11 @@ systemctl stop op25-multi_rx.service
|
||||
echo "Installing OP25..."
|
||||
./install.sh
|
||||
|
||||
echo "\n\n\t\tOP25 installation completed!\n\n"
|
||||
echo "\n\n\t\tOP25 installation completed!\n\n"
|
||||
|
||||
# Setting permissions on the directories created
|
||||
cd $ogPwd
|
||||
chown -R 1000:1000 ./*
|
||||
echo "Permissions set on the client directory!"
|
||||
|
||||
echo "\n\n\t\tNode installation Complete!"
|
||||
Reference in New Issue
Block a user