1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bozon_ynh.git synced 2024-09-03 18:16:09 +02:00
This commit is contained in:
ewilly 2016-10-11 21:52:03 +02:00
parent aebb7da142
commit 205807ffba
2 changed files with 4 additions and 17 deletions

View file

@ -50,15 +50,6 @@
"choices": ["Yes", "No"], "choices": ["Yes", "No"],
"default": "No" "default": "No"
}, },
{
"name": "language",
"ask": {
"en": "Default language",
"fr": "Langue par défaut"
},
"choices": ["de","en","es","fr"],
"default": "en"
},
{ {
"name": "filesize", "name": "filesize",
"ask": { "ask": {

View file

@ -11,10 +11,9 @@ app=bozon
domain=$1 domain=$1
path=${2%/} path=${2%/}
is_public=$3 is_public=$3
language=$4 filesize=$4
filesize=$5 admin=$5
admin=$6 password=$6
password=$7
# definie useful vars # definie useful vars
parent_path=/var/www parent_path=/var/www
@ -51,9 +50,6 @@ sudo chown -R root: "$final_path"
sudo find "$final_path" -type f | xargs sudo chmod 644 sudo find "$final_path" -type f | xargs sudo chmod 644
sudo find "$final_path" -type d | xargs sudo chmod 755 sudo find "$final_path" -type d | xargs sudo chmod 755
# configure config file
sudo sed -i "s@languageuage='en';@languageuage='$language';@g" $final_path/config.php
# create data folders # create data folders
sudo mkdir -p "$final_path"/private sudo mkdir -p "$final_path"/private
sudo mkdir -p "$data_path"/uploads sudo mkdir -p "$data_path"/uploads
@ -97,7 +93,7 @@ curl -k -X POST \
--data-urlencode login="$admin" \ --data-urlencode login="$admin" \
--data-urlencode pass="$password" \ --data-urlencode pass="$password" \
--data-urlencode confirm="$password" \ --data-urlencode confirm="$password" \
https://"$domain""$curl_path"/index.php?p=admin > /dev/null 2>&1 https://"$domain""$curl_path"/index.php?p=login > /dev/null 2>&1
# if app is private, remove url to SSOWat conf from skipped_uris # if app is private, remove url to SSOWat conf from skipped_uris
if [ "$is_public" = "No" ]; if [ "$is_public" = "No" ];