mv vs cp
This commit is contained in:
parent
b6d039b55a
commit
6d7e95f2c4
@ -124,7 +124,7 @@ fi
|
||||
|
||||
### Other configuraton ###
|
||||
echo eula=true > eula.txt
|
||||
mv $home/data/server-icon.png $home/data/server.properties /opt/minecraft/
|
||||
cp $home/data/server-icon.png $home/data/server.properties /opt/minecraft/
|
||||
|
||||
|
||||
### Mods handling ###
|
||||
@ -167,7 +167,7 @@ fi
|
||||
if [[ "$ansPlayerSync" =~ ["y"|"Y"] || -z $ansPlayerSync ]]; then
|
||||
wget https://cdn.modrinth.com/data/4pmkajBP/versions/mK3hQ8Vs/playersync-1.21.1-2.1.5.jar
|
||||
mv playersync*.jar /opt/minecraft/mods
|
||||
mv $home/data/playersync-common.toml /opt/minecraft/config/
|
||||
cp $home/data/playersync-common.toml /opt/minecraft/config/
|
||||
|
||||
rndr=$((RANDOM % (32765-10000+1)+10000))
|
||||
sed -i "s/1234567890/$rndr$rndr/g" config/playersync-common.toml #gens uniqe id
|
||||
@ -189,7 +189,7 @@ chown -R minecraft:minecraft /opt/minecraft
|
||||
|
||||
### SystemD service ###
|
||||
printf "+ Preparign systemD service\n"
|
||||
mv $home/data/mc-forge.service /etc/systemd/system/
|
||||
cp $home/data/mc-forge.service /etc/systemd/system/
|
||||
|
||||
systemctl daemon-reload
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user