last fixes in console.py and little fix in login.css

This commit is contained in:
Antonio de la Rosa 2015-12-10 01:37:06 +01:00
parent e8da5fcaab
commit c60f6843c2
2 changed files with 10 additions and 1 deletions

View file

@ -14,6 +14,8 @@ def start():
parser.add_argument('--path', help='The path where the paramecio site is located', required=True)
parser.add_argument('--symlink', help='Set if create direct symlink to paramecio in new site', required=False, nargs='?', const='1')
args=parser.parse_args()
workdir=os.path.dirname(os.path.abspath(__file__))
@ -65,6 +67,13 @@ def start():
print('Error: cannot copy the file padmin.py. Check if exists and if you have permissions for this task')
if args.symlink!=None:
try:
os.symlink(workdir, args.path+'/paramecio', True)
except:
print('Error: cannot symlink paramecio in new site')
# Question about mysql configuration? If yes, install configuration
s=input('Do you want use paramecio with MySQL database? y/n: ')