mirror of
https://github.com/YunoHost-Apps/bozon_ynh.git
synced 2024-09-03 18:16:09 +02:00
update
This commit is contained in:
parent
aebb7da142
commit
205807ffba
2 changed files with 4 additions and 17 deletions
|
@ -50,15 +50,6 @@
|
|||
"choices": ["Yes", "No"],
|
||||
"default": "No"
|
||||
},
|
||||
{
|
||||
"name": "language",
|
||||
"ask": {
|
||||
"en": "Default language",
|
||||
"fr": "Langue par défaut"
|
||||
},
|
||||
"choices": ["de","en","es","fr"],
|
||||
"default": "en"
|
||||
},
|
||||
{
|
||||
"name": "filesize",
|
||||
"ask": {
|
||||
|
|
|
@ -11,10 +11,9 @@ app=bozon
|
|||
domain=$1
|
||||
path=${2%/}
|
||||
is_public=$3
|
||||
language=$4
|
||||
filesize=$5
|
||||
admin=$6
|
||||
password=$7
|
||||
filesize=$4
|
||||
admin=$5
|
||||
password=$6
|
||||
|
||||
# definie useful vars
|
||||
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 d | xargs sudo chmod 755
|
||||
|
||||
# configure config file
|
||||
sudo sed -i "s@languageuage='en';@languageuage='$language';@g" $final_path/config.php
|
||||
|
||||
# create data folders
|
||||
sudo mkdir -p "$final_path"/private
|
||||
sudo mkdir -p "$data_path"/uploads
|
||||
|
@ -97,7 +93,7 @@ curl -k -X POST \
|
|||
--data-urlencode login="$admin" \
|
||||
--data-urlencode pass="$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 [ "$is_public" = "No" ];
|
||||
|
|
Loading…
Reference in a new issue