mirror of
https://github.com/YunoHost-Apps/abantecart_ynh.git
synced 2024-09-03 18:06:16 +02:00
idem
This commit is contained in:
parent
0a7f817c8f
commit
d9d0e51830
3 changed files with 6 additions and 12 deletions
|
@ -3,7 +3,7 @@ location __PATH__/ {
|
|||
alias __FINALPATH__/;
|
||||
|
||||
# Default indexes and catch-all
|
||||
index index.html index.php;
|
||||
index index.php;
|
||||
try_files $uri $uri/ __PATH__/index.php?$args;
|
||||
|
||||
# Prevent useless logs
|
||||
|
@ -32,12 +32,6 @@ location __PATH__/ {
|
|||
try_files $hidpi_uri $uri =404;
|
||||
}
|
||||
|
||||
location ~ __PATH__/ {
|
||||
if (!-e $request_filename){
|
||||
rewrite ^/(.*)\?*$ __PATH__/index.php?_route_=$1 last;
|
||||
}
|
||||
}
|
||||
|
||||
location ~* __PATH__/\.(jpg|jpeg|png|gif|css|js|ico)$ {
|
||||
expires max;
|
||||
log_not_found off;
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
"name": "admin_pass",
|
||||
"type": "password",
|
||||
"ask": {
|
||||
"en": "Set the password for the Admin user ≥ 5 character (without special caracters)",
|
||||
"en": "Set the password for the Admin user ≥ 8 character (without special caracters)",
|
||||
"fr": "Définissez le mot de passe pour l'Administrateur. ≥ cinq charactères"
|
||||
},
|
||||
"example": "myreallystrengthpassword"
|
||||
|
|
|
@ -48,14 +48,14 @@ ynh_webpath_register $app $domain $path_url
|
|||
# INSTALL DEPENDENCIES
|
||||
#=================================================
|
||||
|
||||
ynh_install_app_dependencies php-mysql
|
||||
ynh_install_app_dependencies php-mysql php-zip php-gd
|
||||
|
||||
#=================================================
|
||||
# Check password strength
|
||||
#=================================================
|
||||
|
||||
[[ ${#admin_pass} -gt 5 ]] || ynh_die \
|
||||
"The password is too weak, it must be longer than 5 characters"
|
||||
[[ ${#admin_pass} -gt 8 ]] || ynh_die \
|
||||
"The password is too weak, it must be longer than 8 characters"
|
||||
|
||||
#=================================================
|
||||
# STORE SETTINGS FROM MANIFEST
|
||||
|
@ -127,7 +127,7 @@ php cli_install.php install \
|
|||
--email=$admin_email \
|
||||
--http_server=https://$domain$path_url \
|
||||
--db_prefix=_ac_ \
|
||||
--admin_path=admin
|
||||
--admin_path=ab_admin
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue