diff --git a/manifest.json b/manifest.json deleted file mode 100644 index 86f0173..0000000 --- a/manifest.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name": "OwnTracks", - "id": "owntracks", - "packaging_format": 1, - "description": { - "en": "Keep track of your location history", - "fr": "Gérez votre historique de géolocalisation" - }, - "version": "0.1~ynh10", - "url": "http://owntracks.org/", - "upstream": { - "license": "GPL-3.0", - "website": "https://owntracks.org/", - "code": "https://github.com/tomyvi/php-owntracks-recorder" - }, - "license": "GPL-3.0", - "maintainer": { - "name": "tituspijean", - "email": "tituspijean@outlook.com", - "url": "https://github.com/tituspijean/owntracks_ynh" - }, - "requirements": { - "yunohost": ">= 4.3.0" - }, - "multi_instance": true, - "services": [ - "nginx", - "php7.3-fpm", - "mysql" - ], - "arguments": { - "install": [{ - "name": "domain", - "type": "domain" - }, - { - "name": "path", - "type": "path", - "example": "/owntracks", - "default": "/owntracks" - }, - { - "name": "user", - "type": "user", - "ask": { - "en": "Choose a user", - "fr": "Choisissez un utilisateur" - }, - "help": { - "en": "Mandatory if the app is set to public. This user's traces will be displayed to visitors.", - "fr": "Obligatoire si l'app est publique. Les traces de cet utilisateur seront montrées aux visiteurs." - }, - "optional": true - }, - { - "name": "is_public", - "type": "boolean", - "help": { - "en": "If public, anyone will be able to see the owntracks record from specified user.", - "fr": "Si publique, quiconque aura accès aux traces owntracks de l'utilisateur spécifié." - }, - "default": false - } - ] - } -} diff --git a/manifest.toml b/manifest.toml index 81597de..d4611f4 100644 --- a/manifest.toml +++ b/manifest.toml @@ -57,10 +57,10 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "mariadb-server, php8.2-fpm, php8.2-mysql" + packages = "" extras.yarn.repo = "deb https://dl.yarnpkg.com/debian/ stable main" extras.yarn.key = "https://dl.yarnpkg.com/debian/pubkey.gpg" extras.yarn.packages = "yarn" - [resources.database] - type = "mysql" + #[resources.database] + #type = "mysql" diff --git a/scripts/install b/scripts/install index 8c52572..8ff9f49 100644 --- a/scripts/install +++ b/scripts/install @@ -44,19 +44,19 @@ ynh_add_fpm_config #================================================= # PREPARE MYQSL DATABASE #================================================= -ynh_script_progression --message="Initializing the database..." +#ynh_script_progression --message="Initializing the database..." -ynh_mysql_connect_as $app $db_pwd $db_name < "$install_dir/sql/schema.sql" +#ynh_mysql_connect_as $app $db_pwd $db_name < "$install_dir/sql/schema.sql" #================================================= # MODIFY A CONFIG FILE #================================================= -ynh_script_progression --message="Adding a configuration file..." +#ynh_script_progression --message="Adding a configuration file..." -ynh_add_config --template="../conf/config.inc.php" --destination="$install_dir/config.inc.php" +#ynh_add_config --template="../conf/config.inc.php" --destination="$install_dir/config.inc.php" -chmod 400 "$install_dir/config.inc.php" -chown $app:$app "$install_dir/config.inc.php" +#chmod 400 "$install_dir/config.inc.php" +#chown $app:$app "$install_dir/config.inc.php" #================================================= # INSTALL THE LOUNGE @@ -67,7 +67,7 @@ pushd $install_dir ynh_use_nodejs ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH yarn install ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production yarn build - mv $install_dir/dist/ $install_dir + mv $install_dir/dist/ $install_dir/ popd #=================================================