diff --git a/conf/.env b/conf/.env new file mode 100644 index 0000000..04f60c3 --- /dev/null +++ b/conf/.env @@ -0,0 +1,3 @@ +MIX_ENV=prod +FLAVOUR=classic +HOSTNAME=__DOMAIN__ \ No newline at end of file diff --git a/scripts/install b/scripts/install index 0478f81..d04f539 100644 --- a/scripts/install +++ b/scripts/install @@ -59,6 +59,16 @@ ynh_replace_string --match_string="PUBLIC_PORT=4000" --replace_string="PUBLIC_PO # max file upload size UPLOAD_LIMIT="${media_upload_size:0:2}000000" # convert the MB argument in bytes +#================================================= +# ADD A CONFIGURATION +#================================================= +ynh_script_progression --message="Adding a configuration file..." --weight=1 + +ynh_add_config --template="../conf/.env" --destination="$install_dir/.env" + +chmod 400 "$install_dir/.env" +chown $app:$app "$install_dir/.env" + #================================================= # Configure the release #=================================================