"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "bin/commands/countly.sh" between
countly-server-20.04.1.4.tar.gz and countly-server-20.04.1.5.tar.gz

About: countly-server is a mobile & web analytics, push notifications and crash reporting platform. This is the server part that collects and analyzes data while individual client SDKs (mobile, web or desktop) send the data. Community Edition (commercial Enterprise Edition also available).

countly.sh  (countly-server-20.04.1.4):countly.sh  (countly-server-20.04.1.5)
skipping to change at line 195 skipping to change at line 195
then then
run_upgrade "$2" upgrade "$y"; run_upgrade "$2" upgrade "$y";
else else
echo "Provide upgrade version in formats:"; echo "Provide upgrade version in formats:";
echo " countly upgrade run <version>"; echo " countly upgrade run <version>";
echo " countly upgrade run fs <version>"; echo " countly upgrade run fs <version>";
echo " countly upgrade run db <version>"; echo " countly upgrade run db <version>";
fi fi
elif [ "$1" == "ee" ] elif [ "$1" == "ee" ]
then then
FILE=$(ls -la "$DIR/../../"countly-enterprise-edition*.tar.gz | tail -1 FILE=$(ls -tr "$DIR/../../../"countly-enterprise-edition*.tar.gz 2> /dev
| awk -F' ' '{print $NF}') /null | tail -1 | awk -F' ' '{print $NF}')
if [ -f "$FILE" ]; then if [ -f "$FILE" ]; then
cp -Rf "$DIR/../../"plugins/plugins.default.json "$DIR/../../"plugin tar -zxf "${FILE}" -C /tmp "countly/frontend/express/version.info.js
s/plugins.ce.json "
NEW_VERSION="$(grep -oP 'version:\s*"\K[0-9\.]*' "/tmp/countly/front
end/express/version.info.js")"
rm -rf /tmp/countly
if [ "$VERSION" == "$NEW_VERSION" ]; then
cp -Rf "$DIR/../../"plugins/plugins.default.json "$DIR/../../"pl
ugins/plugins.ce.json
echo "Extracting Countly Enterprise Edition..." echo "Extracting Countly Enterprise Edition..."
(cd "$DIR/../.."; (cd "$DIR/../../../";
tar xaf countly-enterprise*.tar.gz --strip=1;) tar -zxf "${FILE}";)
EE_PLUGINS=$(sed 's/\"//g' "$DIR/../../plugins/plugins.ee.json" | se EE_PLUGINS=$(sed 's/\"//g' "$DIR/../../plugins/plugins.ee.json"
d 's/\[//g' | sed 's/\]//g') | sed 's/\[//g' | sed 's/\]//g')
CE_PLUGINS=$(sed 's/\"//g' "$DIR/../../plugins/plugins.ce.json" | se CE_PLUGINS=$(sed 's/\"//g' "$DIR/../../plugins/plugins.ce.json"
d 's/\[//g' | sed 's/\]//g') | sed 's/\[//g' | sed 's/\]//g')
PLUGINS_DIFF=$(echo " ${EE_PLUGINS}, ${CE_PLUGINS}" | tr ',' '\n' | PLUGINS_DIFF=$(echo " ${EE_PLUGINS}, ${CE_PLUGINS}" | tr ',' '\n
sort | uniq -u) ' | sort | uniq -u)
echo "Enabling plugins..." echo "Enabling plugins..."
for plugin in $PLUGINS_DIFF; do for plugin in $PLUGINS_DIFF; do
countly plugin enable "$plugin" countly plugin enable "$plugin"
done done
echo "Upgrading Countly..." echo "Upgrading Countly..."
countly upgrade countly upgrade
else
echo "Version mismatch detected! Version of Countly Community Ed
ition should be the same with Enterprise Edition. Please upgrade Countly to Com
munity Edition v${NEW_VERSION} first."
echo "Community Edition v${VERSION}"
echo "Enterprise Edition v${NEW_VERSION}"
fi
else else
echo "Error: Couldn't find any Enterprise Edition package, you shoul d place archive file into '$(cd "$DIR/../.."; pwd;)'" echo "Error: Couldn't find any Enterprise Edition package, you shoul d place archive file into '$(cd "$DIR/../../../"; pwd;)'"
fi fi
elif [ "$1" == "help" ] elif [ "$1" == "help" ]
then then
echo "countly upgrade usage:" echo "countly upgrade usage:"
echo " countly upgrade # prepare pro duction files and restart process"; echo " countly upgrade # prepare pro duction files and restart process";
echo " countly upgrade auto [-y] # automatical ly run all upgrade scripts between marked and current versions"; echo " countly upgrade auto [-y] # automatical ly run all upgrade scripts between marked and current versions";
echo " countly upgrade auto fs [-y] # automatical ly run all file system upgrade scripts between marked and current versions"; echo " countly upgrade auto fs [-y] # automatical ly run all file system upgrade scripts between marked and current versions";
echo " countly upgrade auto db [-y] # automatical ly run all database upgrade scripts between marked and current versions"; echo " countly upgrade auto db [-y] # automatical ly run all database upgrade scripts between marked and current versions";
echo " countly upgrade list auto # list all ve rsion upgrades that will be used in auto upgrade"; echo " countly upgrade list auto # list all ve rsion upgrades that will be used in auto upgrade";
echo " countly upgrade list <from_version> <to_version> # list all ve rsion upgrades that will be used upgrading from and to provided version"; echo " countly upgrade list <from_version> <to_version> # list all ve rsion upgrades that will be used upgrading from and to provided version";
 End of changes. 6 change blocks. 
20 lines changed or deleted 35 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)