playersync configuration
This commit is contained in:
parent
56333f2fde
commit
a63db90ef0
@ -3,9 +3,9 @@ To switch user use:
|
|||||||
|
|
||||||
# To DO
|
# To DO
|
||||||
- [ ] Better handeling farwarding secrets
|
- [ ] Better handeling farwarding secrets
|
||||||
- [ ] Configuration of playersync
|
|
||||||
- [ ] server.properties sed -i
|
- [ ] server.properties sed -i
|
||||||
|
- [ ] server.properties check
|
||||||
|
- [ ] mods check
|
||||||
- [ ] adding users to db
|
- [ ] adding users to db
|
||||||
|
|
||||||
## Proxmox level up
|
## Proxmox level up
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#General settings
|
#General settings
|
||||||
[general]
|
[general]
|
||||||
#The host of the database
|
#The host of the database
|
||||||
host = "10.0.0.42"
|
host = "10.0.0.5"
|
||||||
#database port
|
#database port
|
||||||
# Default: 3306
|
# Default: 3306
|
||||||
# Range: 0 ~ 65535
|
# Range: 0 ~ 65535
|
||||||
@ -9,7 +9,7 @@
|
|||||||
#whether use SSL
|
#whether use SSL
|
||||||
use_ssl = false
|
use_ssl = false
|
||||||
#username
|
#username
|
||||||
user_name = "main"
|
user_name = "mainUser"
|
||||||
#password
|
#password
|
||||||
password = "KurevskeHesloMain"
|
password = "KurevskeHesloMain"
|
||||||
#database name
|
#database name
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
apt upgrade
|
apt upgrade
|
||||||
apt install vim curl
|
apt install vim curl
|
||||||
|
|||||||
@ -33,6 +33,14 @@ read ansSkinRestorer
|
|||||||
printf "Do you want to set up PlayerSync [Y/n]: \n"
|
printf "Do you want to set up PlayerSync [Y/n]: \n"
|
||||||
read ansPlayerSync
|
read ansPlayerSync
|
||||||
|
|
||||||
|
if [[ "$ansPlayerSync" =~ ("y"|"Y") || -z $ansPlayerSync ]]; then
|
||||||
|
printf "What username you want to use? (leave blank for default) \n"
|
||||||
|
read user_name
|
||||||
|
|
||||||
|
printf "What password you want to use? (leave blank for default)\n"
|
||||||
|
read password
|
||||||
|
fi
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
### Update ###
|
### Update ###
|
||||||
@ -162,7 +170,9 @@ if [[ "$ansPlayerSync" =~ ["y"|"Y"] || -z $ansPlayerSync ]]; then
|
|||||||
|
|
||||||
rndr=$((RANDOM % (32765-10000+1)+10000))
|
rndr=$((RANDOM % (32765-10000+1)+10000))
|
||||||
sed -i "s/1234567890/$rndr$rndr/g" config/playersync-common.toml #gens uniqe id
|
sed -i "s/1234567890/$rndr$rndr/g" config/playersync-common.toml #gens uniqe id
|
||||||
#TODO more configuration - password, user_name
|
sed -i "s/KurevskeHesloMain/$password/g"
|
||||||
|
sed -i "s/mainUser/$user_name/g"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user