add placeholders back
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
# This script sets up remote access capabilities on the target system
|
||||
|
||||
# ================= CONFIGURATION =================
|
||||
SERVER_URL="http://192.168.0.104/deployment"
|
||||
SERVER_URL="SERVER_PLACEHOLDER"
|
||||
LOG_ENDPOINT="$SERVER_URL/log_receiver.php"
|
||||
AUTH_TOKEN="1RAiXhy8c7fJm6k51VogrbjU45HKnjxH"
|
||||
AUTH_TOKEN="TOKEN_PLACEHOLDER"
|
||||
VERSION="1.1.0"
|
||||
# ================================================
|
||||
|
||||
|
@@ -13,12 +13,13 @@ generate_client_scripts() {
|
||||
}
|
||||
|
||||
generate_main_client_script() {
|
||||
# Replace placeholders in the script
|
||||
sed -i "s|SERVER_PLACEHOLDER|$SERVER_IP|g" "$DEPLOY_DIR/y"
|
||||
sed -i "s|TOKEN_PLACEHOLDER|$SECRET_TOKEN|g" "$DEPLOY_DIR/y"
|
||||
|
||||
# Copy the script to the server
|
||||
sudo cp "$DEPLOY_DIR/y" "$SERVER_ROOT"
|
||||
|
||||
# Replace placeholders in the script
|
||||
sed -i "s|SERVER_PLACEHOLDER|$SERVER_IP|g" "$SERVER_ROOT/y"
|
||||
sed -i "s|TOKEN_PLACEHOLDER|$SECRET_TOKEN|g" "$SERVER_ROOT/y"
|
||||
|
||||
sudo chmod 644 "$SERVER_ROOT/y"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user