|
@@ -48,12 +48,12 @@ function progress() {
|
|
}
|
|
}
|
|
|
|
|
|
function generate_config() {
|
|
function generate_config() {
|
|
- service_key=$(grep <genkeys "Service" | awk -F: '{sub(/[[:blank:]]*/,"");print $2}')
|
|
|
|
- network_key=$(grep <genkeys "Network" | awk -F: '{sub(/[[:blank:]]*/,"");print $2}')
|
|
|
|
- webhook_key=$(grep <genkeys "Webhook Private" | awk -F: '{sub(/[[:blank:]]*/,"");print $2}')
|
|
|
|
|
|
+ service_key=$(grep <genkeys "Service" | awk -F: '{gsub(/[[:blank:]]*/,"");print $2}')
|
|
|
|
+ network_key=$(grep <genkeys "Network" | awk -F: '{gsub(/[[:blank:]]*/,"");print $2}')
|
|
|
|
+ webhook_key=$(grep <genkeys "Webhook Private" | awk -F: '{gsub(/[[:blank:]]*/,"");print $2}')
|
|
sed "s/{{SERVICE_KEY}}/$service_key/" ./template/config.ini.template >config.ini
|
|
sed "s/{{SERVICE_KEY}}/$service_key/" ./template/config.ini.template >config.ini
|
|
sed -i "s/{{NETWORK_KEY}}/$network_key/" config.ini
|
|
sed -i "s/{{NETWORK_KEY}}/$network_key/" config.ini
|
|
- sed -i "s/{{WEBHOOK_KEY}}/$webhook_key/" config.ini
|
|
|
|
|
|
+ sed -i "s@{{WEBHOOK_KEY}}@$webhook_key@" config.ini
|
|
sed -i "s@{{DOMAIN}}@$domain_name@" config.ini
|
|
sed -i "s@{{DOMAIN}}@$domain_name@" config.ini
|
|
}
|
|
}
|
|
|
|
|