fix $cfg path
This commit is contained in:
parent
75dda8f900
commit
0a1cd25f59
2 changed files with 4 additions and 4 deletions
|
|
@ -48,7 +48,7 @@ If you choose to enable SSL:
|
||||||
certbot certonly --standalone -d yourdomain.com
|
certbot certonly --standalone -d yourdomain.com
|
||||||
```
|
```
|
||||||
- Automatically modifies:
|
- Automatically modifies:
|
||||||
`/etc/pterodactyl/config.yml`
|
`/etc/calagopus-wings/config.yml`
|
||||||
From:
|
From:
|
||||||
```yaml
|
```yaml
|
||||||
ssl:
|
ssl:
|
||||||
|
|
@ -65,7 +65,7 @@ To:
|
||||||
```
|
```
|
||||||
A backup of the config is created as:
|
A backup of the config is created as:
|
||||||
```
|
```
|
||||||
/etc/pterodactyl/config.yml.bak
|
/etc/calagopus-wings/config.yml.bak
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
### 3️⃣ Wings Binary
|
### 3️⃣ Wings Binary
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@ run_with_spinner() {
|
||||||
########################################
|
########################################
|
||||||
update_ssl_config() {
|
update_ssl_config() {
|
||||||
local domain="$1"
|
local domain="$1"
|
||||||
local cfg="/etc/pterodactyl/config.yml"
|
local cfg="/etc/calagopus-wings/config.yml"
|
||||||
local cert="/etc/letsencrypt/live/${domain}/fullchain.pem"
|
local cert="/etc/letsencrypt/live/${domain}/fullchain.pem"
|
||||||
local key="/etc/letsencrypt/live/${domain}/privkey.pem"
|
local key="/etc/letsencrypt/live/${domain}/privkey.pem"
|
||||||
|
|
||||||
|
|
@ -252,7 +252,7 @@ if confirm_default_no "Run wings configure --join-data now?"; then
|
||||||
JOIN_DATA="$(extract_join_data "$JOIN_DATA_RAW")"
|
JOIN_DATA="$(extract_join_data "$JOIN_DATA_RAW")"
|
||||||
|
|
||||||
if [[ -n "$JOIN_DATA" ]]; then
|
if [[ -n "$JOIN_DATA" ]]; then
|
||||||
$SUDO mkdir -p /etc/pterodactyl
|
$SUDO mkdir -p /etc/calagopus-wings
|
||||||
$SUDO "$WINGS_BIN" configure --join-data "$JOIN_DATA"
|
$SUDO "$WINGS_BIN" configure --join-data "$JOIN_DATA"
|
||||||
CONFIG_CREATED=true
|
CONFIG_CREATED=true
|
||||||
say "Configuration complete"
|
say "Configuration complete"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue