-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_conf.sh
executable file
·63 lines (49 loc) · 2.53 KB
/
install_conf.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
JEU=/mnt/c/jeux/steamapps/common/Valheim
JEUELSA=/mnt/c/jeux/steamapps/common/Valerheim
SRV=/mnt/c/jeux/steamapps/common/Valheim-server
SRVELSA=/mnt/c/jeux/steamapps/common/Valerheim-server
# clean
[ -d /tmp/CustomTextures ] && rm -rf /tmp/CustomTextures
[ -d $JEU/BepInEx/plugins/client-commun/CustomTextures ] && cp -R $JEU/BepInEx/plugins/client-commun/CustomTextures /tmp/
[ -d $JEUELSA/BepInEx/plugins/client-commun/CustomTextures ] && cp -R $JEUELSA/BepInEx/plugins/client-commun/CustomTextures /tmp/
for a in $JEU $JEUELSA $SRV $SRVELSA ; do
rm -rf $a/BepInEx/config/
rm -rf $a/BepInEx/plugins/
mkdir $a/BepInEx/config/
mkdir $a/BepInEx/plugins/
done
# conf plus
VER=9.7
cp valheimplus/valheim_plus_$VER.cfg client-server/config/commun/valheim_plus.cfg
# client version base
cp client/config/commun/* $JEU/BepInEx/config/
cp -R client/plugins/commun/ $JEU/BepInEx/plugins/client-commun/
cp client/config/base/* $JEU/BepInEx/config/
cp -R client/plugins/base/ $JEU/BepInEx/plugins/client-base/
cp client-server/config/commun/* $JEU/BepInEx/config/
cp -R client-server/plugins/commun/ $JEU/BepInEx/plugins/client-server/
cp client-server-base/config/* $JEU/BepInEx/config/
cp -R client-server-base/plugins/ $JEU/BepInEx/plugins/client-server-base/
# client version elsa
cp client/config/commun/* $JEUELSA/BepInEx/config/
cp -R client/plugins/commun/ $JEUELSA/BepInEx/plugins/client-commun/
cp client/config/elsa/* $JEUELSA/BepInEx/config/
cp -R client/plugins/elsa/ $JEUELSA/BepInEx/plugins/client-elsa/
cp client-server/config/commun/* $JEUELSA/BepInEx/config/
cp -R client-server/plugins/commun/ $JEUELSA/BepInEx/plugins/client-server/
cp client-server-elsa/config/* $JEUELSA/BepInEx/config/
cp -R client-server-elsa/plugins/ $JEUELSA/BepInEx/plugins/client-server-elsa/
# server version base
cp client-server/config/commun/* $SRV/BepInEx/config/
cp -R client-server/plugins/commun/ $SRV/BepInEx/plugins/client-server/
cp client-server-base/config/* $SRV/BepInEx/config/
cp -R client-server-base/plugins/ $SRV/BepInEx/plugins/client-server-base/
# server version elsa
cp client-server/config/commun/* $SRVELSA/BepInEx/config/
cp -R client-server/plugins/commun/ $SRVELSA/BepInEx/plugins/client-server/
cp client-server-elsa/config/* $SRVELSA/BepInEx/config/
cp -R client-server-elsa/plugins/ $SRVELSA/BepInEx/plugins/client-server-elsa/
for b in $JEU $JEUELSA ; do
[ -d /tmp/CustomTextures ] && cp -R /tmp/CustomTextures $b/BepInEx/plugins/client-commun/CustomTextures
done