phpmyadmin and phpldapadmin add repo

This commit is contained in:
alihanozturk
2016-06-10 09:56:45 +03:00
parent 9aa92205b5
commit 2963a0ae8f
11 changed files with 881 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/python
import random
import string
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
# Provide different blowfish cookie key for each computer
generated_key = ''.join(random.sample(string.letters + string.digits, 32))
config_path = '/usr/share/phpmyadmin/config.inc.php'
new_config = open(config_path).read().replace('BLOWFISHSECRET', generated_key)
open(config_path, 'w').write(new_config)
def preRemove():
pass