1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yourls_ynh.git synced 2024-09-03 20:35:59 +02:00

update install script remove trailing /

This commit is contained in:
Thomas LEBEAU 2014-07-02 09:45:29 +02:00
parent 74af6dfa10
commit ed3203a78f
2 changed files with 10 additions and 1 deletions

View file

@ -6,6 +6,12 @@
<link rel="stylesheet" href="css/style.css"/> <link rel="stylesheet" href="css/style.css"/>
</head> </head>
<body> <body>
<a href="admin">Admin page</a> <div id="wrap">
<div id="login">
<p><img src="images/yourls-logo.png" alt=""></p>
<p><a href="admin">Admin page</a></p>
</div>
</div>
</body> </body>
</html> </html>

View file

@ -18,6 +18,9 @@ if [[ ! $? -eq 0 ]]; then
exit 1 exit 1
fi fi
# Remove trailing "/" for next commands
path=${path%/}
# Generate random password # Generate random password
db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d 'A-Za-z0-9' | sed -n 's/\(.\{24\}\).*/\1/p') db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d 'A-Za-z0-9' | sed -n 's/\(.\{24\}\).*/\1/p')