Skip to content

Commit 03f0ddd

Browse files
authored
Merge pull request #20 from TCAO-2/main
fix lgsm config file path
2 parents 91bd883 + 96b650f commit 03f0ddd

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

scripts/first_install.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
BASEPATH=/home/sfserver
4-
LSGMSDTDSERVERCFG=${BASEPATH}/lgsm/config-lgsm/sdtdserver/sdtdserver.cfg
4+
LSGMSFSERVERCFG=${BASEPATH}/lgsm/config-lgsm/sfserver/sfserver.cfg
55

66
source $scriptsDir/check_space.sh
77

@@ -16,19 +16,19 @@ echo "[INFO] Selection version ${VERSION} to install"
1616

1717
if [ "${VERSION,,}" == 'stable' ] || [ "${VERSION,,}" == 'public' ]
1818
then
19-
if grep -R "branch" "$LSGMSDTDSERVERCFG"
19+
if grep -R "branch" "$LSGMSFSERVERCFG"
2020
then
21-
sed -i "s/branch=.*/branch=\"\"/" "$LSGMSDTDSERVERCFG"
21+
sed -i "s/branch=.*/branch=\"\"/" "$LSGMSFSERVERCFG"
2222
echo "[INFO] Version changed to ${VERSION,,}"
2323
else
2424
echo "[INFO] Already on ${VERSION,,}"
2525
fi
2626
else
27-
if grep -R "branch" "$LSGMSDTDSERVERCFG"
27+
if grep -R "branch" "$LSGMSFSERVERCFG"
2828
then
29-
sed -i 's/branch=.*/branch="$VERSION"/' "$LSGMSDTDSERVERCFG"
29+
sed -i 's/branch=.*/branch="$VERSION"/' "$LSGMSFSERVERCFG"
3030
else
31-
echo branch='"-beta $VERSION"' >> "$LSGMSDTDSERVERCFG"
31+
echo branch='"-beta $VERSION"' >> "$LSGMSFSERVERCFG"
3232
echo "[INFO] Version changed to ${VERSION,,}"
3333
fi
3434
fi

scripts/server_update.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
#!/bin/bash
22

33
BASEPATH=/home/sfserver
4-
LSGMSDTDSERVERCFG=${BASEPATH}/lgsm/config-lgsm/sdtdserver/sdtdserver.cfg
4+
LSGMSFSERVERCFG=${BASEPATH}/lgsm/config-lgsm/sfserver/sfserver.cfg
55

66
echo "[INFO] Selection version ${VERSION} to install"
77

88
if [ "${VERSION,,}" == 'stable' ] || [ "${VERSION,,}" == 'public' ]
99
then
10-
if grep -R "branch" "$LSGMSDTDSERVERCFG"
10+
if grep -R "branch" "$LSGMSFSERVERCFG"
1111
then
12-
sed -i "s/branch=.*/branch=\"\"/" "$LSGMSDTDSERVERCFG"
12+
sed -i "s/branch=.*/branch=\"\"/" "$LSGMSFSERVERCFG"
1313
echo "[INFO] Version changed to ${VERSION,,}"
1414
else
1515
echo "[INFO] Already on ${VERSION,,}"
1616
fi
1717
else
18-
if grep -R "branch" "$LSGMSDTDSERVERCFG"
18+
if grep -R "branch" "$LSGMSFSERVERCFG"
1919
then
20-
sed -i 's/branch=.*/branch="$VERSION"/' "$LSGMSDTDSERVERCFG"
20+
sed -i 's/branch=.*/branch="$VERSION"/' "$LSGMSFSERVERCFG"
2121
else
22-
echo branch='"-beta $VERSION"' >> "$LSGMSDTDSERVERCFG"
22+
echo branch='"-beta $VERSION"' >> "$LSGMSFSERVERCFG"
2323
echo "[INFO] Version changed to ${VERSION,,}"
2424
fi
2525
fi

0 commit comments

Comments
 (0)