mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-22 06:46:14 +00:00
correct issue to generate patch with good release number
This commit is contained in:
parent
3afcadb9c3
commit
322eb4f947
1 changed files with 10 additions and 1 deletions
11
dist/docker/server/debian/common/init-khanat.sh
vendored
11
dist/docker/server/debian/common/init-khanat.sh
vendored
|
@ -488,8 +488,16 @@ awk 'BEGIN{found=0}{
|
||||||
#</xml>
|
#</xml>
|
||||||
#EOF
|
#EOF
|
||||||
|
|
||||||
|
# Force version release
|
||||||
|
if [[ $KHANAT_CLIENT_VERSION -gt 1 ]]
|
||||||
|
then
|
||||||
|
# rm $PATCH_HOME/patch_service/patch_game/ryzom.hist
|
||||||
|
# rm $PATCH_HOME/patch_service/patch_game/ref/*
|
||||||
|
echo -n "$KHANAT_CLIENT_VERSION" > $PATCH_HOME/patch_service/patch_game/Lirria.version
|
||||||
|
fi
|
||||||
|
|
||||||
# Generate patch
|
# Generate patch
|
||||||
su -c "cd $PATCH_HOME/patch_service; patch_gen updateProduct patch_game/ryzom.xml" gameserver || exit 2
|
su -c "cd $PATCH_HOME/patch_service; patch_gen updateProduct patch_game/ryzom.xml > patch_game/generate.log 2>&1" gameserver || exit 2
|
||||||
# Edit release note
|
# Edit release note
|
||||||
cat << EOF > $PATCH_HOME/patch_service/patch_game/patch/index.php
|
cat << EOF > $PATCH_HOME/patch_service/patch_game/patch/index.php
|
||||||
<html>
|
<html>
|
||||||
|
@ -505,6 +513,7 @@ cat << EOF > $PATCH_HOME/patch_service/patch_game/patch/index.php
|
||||||
EOF
|
EOF
|
||||||
chown gameserver:www-data $PATCH_HOME/patch_service/patch_game/patch/index.php
|
chown gameserver:www-data $PATCH_HOME/patch_service/patch_game/patch/index.php
|
||||||
|
|
||||||
|
# TODO - Strange, we need update patch - to be check
|
||||||
cat << EOF > $PATCH_HOME/patch_service/patch_game/patch/Lirria.version
|
cat << EOF > $PATCH_HOME/patch_service/patch_game/patch/Lirria.version
|
||||||
$KHANAT_CLIENT_VERSION $KHANAT_CLIENT_VERSION
|
$KHANAT_CLIENT_VERSION $KHANAT_CLIENT_VERSION
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in a new issue