diff --git a/conf/.env.example b/conf/.env.example index 4289340..efe6539 100644 --- a/conf/.env.example +++ b/conf/.env.example @@ -75,13 +75,13 @@ REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_DRIVER=smtp -MAIL_HOST= -MAIL_PORT= -MAIL_USERNAME= -MAIL_PASSWORD= -MAIL_ENCRYPTION= -MAIL_FROM_NAME= -MAIL_FROM_ADDRESS= +MAIL_HOST=localhost +MAIL_PORT=25 +MAIL_USERNAME=__APP__ +MAIL_PASSWORD=__MAIL_PWD__ +MAIL_ENCRYPTION=false +MAIL_FROM_NAME=lychee +MAIL_FROM_ADDRESS=lychee@__DOMAIN__ # The trusted proxies if Lychee is behind a reverse proxy # Accepted values: diff --git a/manifest.toml b/manifest.toml index 6821ece..9c9ff56 100644 --- a/manifest.toml +++ b/manifest.toml @@ -51,6 +51,7 @@ ram.runtime = "50M" autoupdate.strategy = "latest_github_tag" [resources.system_user] + allow_email = true [resources.install_dir] diff --git a/scripts/install b/scripts/install index 5207195..d9987ed 100755 --- a/scripts/install +++ b/scripts/install @@ -69,6 +69,17 @@ ynh_script_progression --message="Installing app with Composer..." --weight=15 ynh_install_composer +#================================================= +# INSTALL LYCHEE +#================================================= +ynh_script_progression --message="Installing $app..." --weight=10 + +pushd $install_dir + ynh_use_nodejs + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install + ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH NODE_ENV=production $ynh_npm run build +popd + #================================================= # ADD A CONFIGURATION #=================================================