1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jappix_ynh.git synced 2024-09-03 19:26:19 +02:00

Merge pull request #1 from titoko/master

Merge from upstream
This commit is contained in:
Alexis Gavoty 2013-12-09 04:53:14 -08:00
commit ab6ac6305a
2 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,4 @@
location PATHTOCHANGE {
location PATHTOCHANGE/ {
alias ALIASTOCHANGE ;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;

View file

@ -10,6 +10,10 @@ if [[ ! $? -eq 0 ]]; then
exit 1
fi
# Remove trailing "/" for next commands
path=${path%/}
# Generate random DES key & password
deskey=$(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')