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('--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() args=parser.parse_args()
workdir=os.path.dirname(os.path.abspath(__file__)) 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') 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 # Question about mysql configuration? If yes, install configuration
s=input('Do you want use paramecio with MySQL database? y/n: ') s=input('Do you want use paramecio with MySQL database? y/n: ')

View file

@ -10,7 +10,7 @@ body {
padding:10px; padding:10px;
color: #fbfbfb; color: #fbfbfb;
background: #ff7153 url("../images/admin/background_title_login.png") right no-repeat; background: #ff7153 url("../images/background_title_login.png") right no-repeat;
font-size:1.5em; font-size:1.5em;
/*text-shadow: 1px 1px 0px rgba(0, 0, 0, 1);*/ /*text-shadow: 1px 1px 0px rgba(0, 0, 0, 1);*/