install: rewrited script for support server installation or upgrade