Ajout d'un helper
This commit is contained in:
parent
ea8fae926a
commit
e6ed70fed3
|
@ -38,7 +38,7 @@
|
||||||
"type": "path",
|
"type": "path",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Choose a path for QR code generator",
|
"en": "Choose a path for QR code generator",
|
||||||
"fr": "Choisissez un domaine pour le Générateur de codes QR"
|
"fr": "Choisissez un chemin pour le Générateur de codes QR"
|
||||||
},
|
},
|
||||||
"example": "/qr",
|
"example": "/qr",
|
||||||
"default": "/qr"
|
"default": "/qr"
|
||||||
|
@ -50,6 +50,10 @@
|
||||||
"en": "Is it a public application?",
|
"en": "Is it a public application?",
|
||||||
"fr": "Est-ce une application publique ?"
|
"fr": "Est-ce une application publique ?"
|
||||||
},
|
},
|
||||||
|
"help": {
|
||||||
|
"en": "Can the QR code generator be used by everyone?",
|
||||||
|
"fr": "Le générateur de codes QR peut-il être utilisé par tout le monde ?"
|
||||||
|
},
|
||||||
"default": true
|
"default": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -117,10 +117,10 @@ fi
|
||||||
#ynh_secure_remove --file="/etc/cron.d/$app"
|
#ynh_secure_remove --file="/etc/cron.d/$app"
|
||||||
|
|
||||||
# Remove a directory securely
|
# Remove a directory securely
|
||||||
ynh_secure_remove --file="/etc/$app/"
|
#ynh_secure_remove --file="/etc/$app/"
|
||||||
|
|
||||||
# Remove the log files
|
# Remove the log files
|
||||||
ynh_secure_remove --file="/var/log/$app/"
|
#ynh_secure_remove --file="/var/log/$app/"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -159,6 +159,8 @@ ynh_store_file_checksum --file="$final_path/options.inc.php"
|
||||||
|
|
||||||
# Set permissions on app files
|
# Set permissions on app files
|
||||||
chown -R root: $final_path
|
chown -R root: $final_path
|
||||||
|
chown -R root:$app $final_path/temp
|
||||||
|
chmod -R g+w $final_path/temp
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
Loading…
Reference in New Issue