1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/listmonk_ynh.git synced 2024-09-03 19:36:15 +02:00

Merge pull request #33 from YunoHost-Apps/testing

Testing
This commit is contained in:
Navan Chauhan 2023-05-12 17:43:31 -06:00 committed by GitHub
commit 799158e689
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 20 deletions

View file

@ -9,8 +9,8 @@ address = "127.0.0.1:__PORT__"
# be replaced with a better multi-user, role-based authentication system.
# IMPORTANT: Leave both values empty to disable authentication on admin
# only where an external authentication is already setup.
admin_username = "__ADMIN__"
admin_password = "__PASSWORD__"
admin_username = ""
admin_password = ""
# Database.
[db]

View file

@ -17,7 +17,7 @@ admindoc = "https://listmonk.app/docs/"
code = "https://github.com/knadh/listmonk"
[integration]
yunohost = ">= 11.1.15"
yunohost = ">= 11.1.18"
architectures = ["amd64", "armhf", "arm64"]
multi_instance = true
ldap = false
@ -38,9 +38,6 @@ ram.runtime = "50M"
[install.admin]
type = "user"
[install.password]
type = "password"
[resources]
[resources.sources]

View file

@ -10,18 +10,6 @@ source _common.sh
source ynh_install_go
source /usr/share/yunohost/helpers
#=================================================
# RETRIEVE ARGUMENTS FROM THE MANIFEST
#=================================================
password=$YNH_APP_ARG_PASSWORD
#=================================================
# STORE SETTINGS FROM MANIFEST
#=================================================
ynh_app_setting_set --app=$app --key=password --value="$password"
#=================================================
# INSTALL DEPENDENCIES
#=================================================
@ -46,13 +34,15 @@ if [ $YNH_ARCH == "armhf" ] || [ $YNH_ARCH == "arm64" ]
then
ynh_setup_source --dest_dir="$install_dir/build"
pushd "$install_dir/build"
# Change to sources directory
cd listmonk-*
# Build the sources
ynh_use_go
export GOPATH="$install_dir/build/go"
export GOCACHE="$install_dir/build/.cache"
ynh_use_nodejs
make dist
mv listmonk ..
mv listmonk ../../
popd
ynh_remove_go
ynh_remove_nodejs

View file

@ -42,13 +42,14 @@ then
# Install Go
ynh_exec_warn_less ynh_install_go --go_version=$GO_VERSION
pushd "$install_dir/build"
cd listmonk-*
# Build the sources
ynh_use_go
export GOPATH="$install_dir/build/go"
export GOCACHE="$install_dir/build/.cache"
ynh_use_nodejs
make dist
mv listmonk ..
mv listmonk ../../
popd
ynh_remove_go
ynh_remove_nodejs