1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-01 15:36:37 +00:00

Update minor upgrade script.

This commit is contained in:
ly1217
2019-10-10 01:02:27 -07:00
parent 0c874defc9
commit f0cf80aa5f
7 changed files with 13 additions and 1030 deletions

13
scripts/upgrade/minor-upgrade.sh Executable file → Normal file
View File

@@ -18,6 +18,7 @@ orig_avatar_dir=${INSTALLPATH}/seahub/media/avatars
dest_avatar_dir=${TOPDIR}/seahub-data/avatars
seafile_server_symlink=${TOPDIR}/seafile-server-latest
seahub_data_dir=${TOPDIR}/seahub-data
elasticsearch_config_file=${seafile_server_symlink}/pro/elasticsearch/config/jvm.options
function migrate_avatars() {
echo
@@ -102,11 +103,23 @@ function update_latest_symlink() {
fi
}
function move_old_elasticsearch_config_to_latest() {
# Move the elasticsearch's configuration file from the old version to the new version
echo
echo "Moving the elasticsearch's configuration file ..."
echo
if [[ -f ${elasticsearch_config_file} ]]; then
/bin/cp -avf ${elasticsearch_config_file} ${INSTALLPATH}/pro/elasticsearch/config/jvm.options
fi
}
migrate_avatars;
move_old_customdir_outside;
make_media_custom_symlink;
move_old_elasticsearch_config_to_latest;
update_latest_symlink;