1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cyberchef_ynh.git synced 2024-09-03 18:16:31 +02:00

Merge pull request #2 from YunoHost-Apps/testing

Testing
This commit is contained in:
Éric Gaspar 2023-03-19 14:20:24 +01:00 committed by GitHub
commit 6d3839d350
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 50 deletions

View file

@ -37,12 +37,6 @@ It is expected that CyberChef will be useful for cybersecurity and antivirus com
![Screenshot of CyberChef](./doc/screenshots/cyberchef_ynh.png)
## Disclaimers / important information
# Disclaimer
This webapp does not store nor transmit your data. But if the data treated is particularly sensitive, you may want to download the webapp from upstream repository and run it locally, in incognito/private browsing mode with no extensions (to avoid rogue browser extensions).
## Documentation and resources
* Official user documentation: <https://github.com/gchq/CyberChef/wiki>

View file

@ -37,12 +37,6 @@ CyberChef devrait s'avérer utile pour les entreprises de cybersécurité et les
![Capture décran de CyberChef](./doc/screenshots/cyberchef_ynh.png)
## Avertissements / informations importantes
# Avertissement
Cette application web ne stocke ni ne transmet vos données. Mais si les données traitées ont un caractère particulièrement sensible, vous pourriez préférer télécharger l'application depuis le dépôt original et l'exécuter localement, en mode incognito/navigation privée sans extension (afin d'exclure le risque d'interception par des extensions de navigateur malveillantes).
## Documentations et ressources
* Documentation officielle utilisateur : <https://github.com/gchq/CyberChef/wiki>

View file

@ -16,10 +16,10 @@ code = "https://github.com/gchq/CyberChef"
cpe = "cpe:2.3:a:gchq:cyberchef"
[integration]
yunohost = ">= 11.1.6"
yunohost = ">= 11.1.15"
architectures = "all"
multi_instance = true
ldap = "not_relevant"
ldap = "not_relevant"
sso = "not_relevant"
disk = "40M"
ram.build = "0M"
@ -32,7 +32,7 @@ ram.runtime = "0M"
[install.path]
type = "path"
default = "/example"
default = "/cyberchef"
[install.init_main_permission]
type = "group"

View file

@ -9,39 +9,8 @@
source _common.sh
source /usr/share/yunohost/helpers
### This helper will compare the version of the currently installed app and the version of the upstream package.
### $upgrade_type can have 2 different values
### - UPGRADE_APP if the upstream app version has changed
### - UPGRADE_PACKAGE if only the YunoHost package has changed
### ynh_check_app_version_changed will stop the upgrade if the app is up to date.
### UPGRADE_APP should be used to upgrade the core app only if there's an upgrade to do.
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# STANDARD UPGRADE STEPS
#=================================================
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
#ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
#
# N.B. : the followings setting migrations snippets are provided as *EXAMPLES*
# of what you may want to do in some cases (e.g. a setting was not defined on
# some legacy installs and you therefore want to initiaze stuff during upgrade)
#
# If db_name doesn't exist, create it
#if [ -z "$db_name" ]; then
# db_name=$(ynh_sanitize_dbid --db_name=$app)
# ynh_app_setting_set --app=$app --key=db_name --value=$db_name
#fi
# If install_dir doesn't exist, create it
#if [ -z "$install_dir" ]; then
# install_dir=/var/www/$app
# ynh_app_setting_set --app=$app --key=install_dir --value=$install_dir
#fi
#=================================================
# "REBUILD" THE APP (DEPLOY NEW SOURCES, RERUN NPM BUILD, ETC...)
#=================================================
@ -56,9 +25,6 @@ then
ynh_setup_source --dest_dir="$install_dir"
fi
# $install_dir will automatically be initialized with some decent
# permission by default ... however, you may need to recursively reapply
# ownership to all files such as after the ynh_setup_source step
chown -R $app:www-data "$install_dir"
#=================================================
@ -68,7 +34,6 @@ ynh_script_progression --message="Upgrading system configurations related to $ap
ynh_add_nginx_config
#=================================================
# END OF SCRIPT
#=================================================