Je ne peux pas installé Fiche: status file not found for 'fiche'

“Texteverseri” (commun appelé pastebin) terminal

Je ne sais pas si cela doit être fait ici ou dans la salle des contributions.
Parce que j’essaie déjà de le faire fonctionner, mais j’échoue jusqu’à présent.

Mon erreur

https://paste.yunohost.org/raw/iqutifides

J’ai pris tout le code générique que j’ai pu trouver et j’ai espéré qu’il fonctionnerait comme par magie.

https://yropeehn.eu.org/git/folaht/fiche_ynh/src/branch/master/scripts/install

#!/bin/bash

#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================

source _common.sh
source /usr/share/yunohost/helpers

#=================================================
# MANAGE SCRIPT FAILURE
#=================================================

# Exit if an error occurs during the execution of the script
ynh_abort_if_errors

#=================================================
# RETRIEVE ARGUMENTS FROM THE MANIFEST
#=================================================

domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC
language=$YNH_APP_ARG_LANGUAGE

app=$YNH_APP_INSTANCE_NAME

#=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
#=================================================
ynh_script_progression --message="Validating installation parameters..." --time --weight=1

final_path=/var/www/$app
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"

# Register (book) web path
ynh_webpath_register --app=$app --domain=$domain --path_url=$path_url

#=================================================
# STORE SETTINGS FROM MANIFEST
#=================================================
ynh_script_progression --message="Storing installation settings..."

ynh_app_setting_set --app=$app --key=domain --value=$domain
ynh_app_setting_set --app=$app --key=path --value=$path_url
ynh_app_setting_set --app=$app --key=is_public --value=$is_public
ynh_app_setting_set --app=$app --key=language --value=$language

#=================================================
# STANDARD MODIFICATIONS
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Setting up source files..." --time --weight=1

ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"

#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring nginx web server..." --time --weight=1

# Create a dedicated nginx config
ynh_add_nginx_config

#=================================================
# CREATE DEDICATED USER
#=================================================
ynh_script_progression --message="Configuring system user..." --time --weight=1

# Create a system user
ynh_system_user_create --username=$app

#=================================================
# SETUP SYSTEMD
#=================================================

ynh_script_progression --message="Configuring a systemd service..." --time --weight=1

# Create a dedicated systemd config
ynh_add_systemd_config



#=================================================
# GENERIC FINALIZATION
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================

# Set permissions to app files
chown -R root: $final_path
# Files owned by user specific can just read
find $final_path -type f | xargs chmod 644
find $final_path -type d | xargs chmod 755

#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================

yunohost service add $app --description "A short description of the app" --log "/var/log/$app/$app.log"


#=================================================
# START SYSTEMD SERVICE
#=================================================

ynh_script_progression --message="Starting a systemd service..." --time --weight=1

# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"

#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring SSOwat..." --time --weight=1

# If app is public, add url to SSOWat conf as skipped_uris
if [ $is_public -eq 1 ]; then
  # unprotected_uris allows SSO credentials to be passed anyway.
  ynh_app_setting_set --app=$app --key=unprotected_uris --value="/"
fi

#=================================================
# RELOAD NGINX
#=================================================
ynh_script_progression --message="Reloading nginx web server..." --time --weight=1

ynh_systemd_action --service_name=nginx --action=reload

#=================================================
# END OF SCRIPT
#=================================================

ynh_script_progression --message="Installation of $app completed" --time --last

https://yropeehn.eu.org/git/folaht/fiche_ynh/src/branch/master/manifest.json

{
    "name": "fiche",
    "id": "fiche",
    "packaging_format": 1,
    "description": {
        "en": "termbin server",
        "fr": "verserie texte terminal"
    },
    "version": "0.9.1~ynh1",
    "url": "https://termbin.com",
    "maintainer": {
        "name": "folaht",
        "email": "folaht@protonmail.com"
    },
    "requirements": {
        "yunohost": ">= 3.7"
    },
    "multi_instance": "false",
    "services": [
        "nginx"
    ],
    "arguments": {
        "install" : [
            {
                "name": "domain",
                "type": "domain",
                "ask": {
                    "en": "Choose a domain for fiche",
                    "fr": "Choisissez un nom de domaine pour fiche"
                },
                "example": "domain.org"
            },
            {
                "name": "path",
                "type": "path",
                "ask": {
                    "en": "Choose a path for fiche",
                    "fr": "Choisissez un chemin pour fiche"
                },
            "example": "/fiche",
            "default": "/fiche"
            },
            {
                "name": "language",
                "type": "string",
                "ask": {
                    "en": "Choose the application language",
                    "fr": "Choisissez la langue de l'application"
                },
                "choices": ["fr", "yr", "en"],
                "default": "fr"
            },
            {
                "name": "is_public",
                "type": "boolean",
                "ask": {
                    "en": "Is it a public Fiche server?",
                    "fr": "est-ce un site public ?"
                },
                "default": true
            }
        ]
    }
}

Le texte intéressant :

2020-05-16 10:09:36,553: WARNING - Corrupt source

Ta somme de contrôle dans app.src ne correspond pas avec le fichier.

1 Like

Qu’est-ce que je fais de mal ?

app.src

    SOURCE_URL=https://github.com/solusipse/fiche/archive/0.9.1.tar.gz
    SOURCE_SUM=f0cb279a2c2a4c0d1debcf56785fd8731a1427d2524221678cf69c9aaa85e831
    SOURCE_SUM_PRG=sha256sum
    SOURCE_FORMAT=tar.gz
    SOURCE_IN_SUBDIR=true
    SOURCE_FILENAME=
[folaht@Pjehrsomehj Téléchargements]$ sha256sum fiche-0.9.1.tar.gz 
f0cb279a2c2a4c0d1debcf56785fd8731a1427d2524221678cf69c9aaa85e831  fiche-0.9.1.tar.gz

[maj]

J’ai mis la revision de manifest de la liste d’attente à jour.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.