@@ -0,0 +1,1259 @@
+#!/usr/bin/python%0A%0Aimport re%0Aimport glob%0Aimport sys%0Aimport os%0A%0Aces_dir = '/install/community-edition-setup'%0A%0Aif not os.path.exists(ces_dir):%0A%0A    ces_list = glob.glob('/opt/dist/gluu/community-edition-setup*.zip')%0A%0A    if not ces_list:%0A        print %22community-edition-setup package was not found%22%0A        dl = raw_input(%22Download from github? (Y/n) %22)%0A        if not dl.strip() or dl.lower()%5B0%5D=='y':%0A            print %22Downloading...%22%0A            os.system('wget -nv https://github.com/GluuFederation/community-edition-setup/archive/master.zip -O /opt/dist/gluu/community-edition-setup-master.zip')%0A            ces_list = glob.glob('/opt/dist/gluu/community-edition-setup*.zip')%0A        else:%0A            print %22Exiting...%22%0A            sys.exit()%0A%0A    ces = max(ces_list)%0A%0A    if not os.path.exists('/install'):%0A        os.mkdir('/install')%0A%0A    print %22Extracting community-edition-setup package%22%0A    os.system('unzip -q %7B0%7D -d /install'.format(ces))%0A    ces_dir_list = glob.glob('/install/community-edition-setup*')%0A%0A    if not ces_dir_list:%0A        print %22community-edition-setup package was not extracted properly. Exiting.%22%0A%0A    ces_cur_dir = max(ces_dir_list)%0A    os.rename(ces_cur_dir, ces_dir)%0A%0Aos.system('/install/community-edition-setup/setup.py')%0A

create install.py as described in #570