diff --git a/conf/cron b/conf/cron index 02900b9..e4838e8 100644 --- a/conf/cron +++ b/conf/cron @@ -1,2 +1,2 @@ -MAILTO="admin" +MAILTO=__EMAIL__ 5 * * * * __APP__ /usr/bin/php__PHPVERSION__ __FINALPATH__/console core:archive --url=https://__DOMAIN____PATH__ > /dev/null diff --git a/manifest.json b/manifest.json index cdecd7d..8e01b22 100644 --- a/manifest.json +++ b/manifest.json @@ -43,6 +43,11 @@ "example": "/matomo", "default": "/matomo" }, + { + "name": "admin", + "type": "user", + "example": "johndoe" + }, { "name": "is_public", "type": "boolean", diff --git a/scripts/install b/scripts/install index d425f25..bcb0142 100755 --- a/scripts/install +++ b/scripts/install @@ -22,6 +22,8 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url=$YNH_APP_ARG_PATH +admin=$YNH_APP_ARG_ADMIN +email=$(ynh_user_get_info --username=$admin --key=mail) is_public=$YNH_APP_ARG_IS_PUBLIC app=$YNH_APP_INSTANCE_NAME