#!/bin/bash systemctl stop immich.service cd /var/lib/immich/app/geodata rm -rf admin1CodesASCII.txt rm -rf admin2Codes.txt rm -rf cities500.txt rm -rf geodata-date.txt rm -rf ne_10m_admin_0_countries.geojson wget -c http://tools.fengqi.io/immich/admin1CodesASCII.txt wget -c http://tools.fengqi.io/immich/admin2Codes.txt wget -c http://tools.fengqi.io/immich/cities500.txt wget -c http://tools.fengqi.io/immich/geodata-date.txt wget -c http://tools.fengqi.io/immich/ne_10m_admin_0_countries.geojson cd /tmp rm -rf resources resources.zip wget -c http://tools.fengqi.io/immich/resources.zip unzip resources.zip >/dev/null 2>&1 cd resources rm -rf /var/lib/immich/app/node_modules/i18n-iso-countries mv i18n-iso-countries /var/lib/immich/app/node_modules/ chown -R immich:immich /var/lib/immich systemctl start immich.service