srchub-install

srchub-install Commit Details


Date:2015-11-01 09:19:55 (9 years 6 months ago)
Author:Natalie Adams
Branch:master
Commit:f20ea2439d6e991930429c32161399c53b0880ed
Parents: 64c15eeae9721d91aa6b82e210c132e8ca0fe988
Message:Changing some defaults

Changes:

File differences

srchub-install.py
156156
157157
158158
159
159160
160161
161162
......
189190
190191
191192
192
193
193194
194195
195196
196197
197198
198199
199
200
201
202
200
201
202
203
203204
204205
205206
......
223224
224225
225226
226
227227
228228
229229
d = Dialog(dialog="dialog", autowidgetsize=True)
distro = ""
FNULL = open(os.devnull, 'w')
def exit_msg():
    print "Thank you for using the srchub installer\n"
    call(["adduser", "git"])
def setup_web_links():
    code, user_input = d.inputbox("I need to setup some web links. Where is your web root? (no leading slash)", init="/var/www")
    code, user_input = d.inputbox("I need to setup some web links. Where is your web root? (no leading slash)", init="/var/www/html")
    call(["ln", "-s", "/home/www/indefero/www/index.php", "%s/index.php" % user_input])
    call(["ln", "-s", "/home/www/indefero/www/media", "%s/media" % user_input])
    with open("%s/.htaccess" % user_input, 'w') as content_file:
        content_file.write(HTACCESS)
def install_pear_modules():
    call(["pear", "install", "File_Passwd"])
    call(["pear", "upgrade-all"])
    call(["pear", "install", "--alldeps", "Mail"])
    call(["pear", "install", "--alldeps", "Mail_mime"])
    call(["pear", "install", "File_Passwd"], stderr=subprocess.STDOUT, stdout=FNULL)
    call(["pear", "upgrade-all"], stderr=subprocess.STDOUT, stdout=FNULL)
    call(["pear", "install", "--alldeps", "Mail"], stderr=subprocess.STDOUT, stdout=FNULL)
    call(["pear", "install", "--alldeps", "Mail_mime"], stderr=subprocess.STDOUT, stdout=FNULL)
def fix_auth_basic():
    with open('/tmp/patch', 'w') as content_file:
    d.msgbox(FINAL_MSG)
def install_package(package):
    FNULL = open(os.devnull, 'w')
    if distro == "Debian":
        if package == "mariadb-server":
            call(["apt-get", "--assume-yes", "-y", "install", package])

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.08968s using 14 queries.