Skip to content
Permalink
Browse files

Rainloop: allow subfolders

  • Loading branch information...
usmannasir committed Aug 24, 2019
1 parent 9914692 commit eefaf467544145bbe02a1cab23c93c220f241358
Showing with 20 additions and 2 deletions.
  1. +20 −2 install/install.py
@@ -2344,6 +2344,8 @@ def downoad_and_install_raindloop(self):

#############



count = 0

while (1):
@@ -2371,6 +2373,24 @@ def downoad_and_install_raindloop(self):
'rainlooop data folder',
1, 0, os.EX_OSERR)


### Enable sub-folders

command = "mkdir -p /usr/local/lscp/cyberpanel/rainloop/data/_data_/_default_/configs/"
preFlightsChecks.call(command, self.distro, '[downoad_and_install_rainloop]',
'rainlooop data folder',
1, 0, os.EX_OSERR)

labsPath = '/usr/local/lscp/cyberpanel/rainloop/data/_data_/_default_/configs/application.ini'

labsData = """[labs]
imap_folder_list_limit = 0
"""

writeToFile = open(labsPath, 'w')
writeToFile.write(labsData)
writeToFile.close()

iPath = os.listdir('/usr/local/CyberCP/public/rainloop/rainloop/v/')

path = "/usr/local/CyberCP/public/rainloop/rainloop/v/%s/include.php" % (iPath[0])
@@ -2388,8 +2408,6 @@ def downoad_and_install_raindloop(self):
writeToFile.close()




except OSError, msg:
logging.InstallLog.writeToFile(str(msg) + " [downoad_and_install_rainloop]")
return 0

0 comments on commit eefaf46

Please sign in to comment.
You can’t perform that action at this time.