You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

135 lines
4.4 KiB

Index: mattermost-server-5.38.2/Makefile
--- mattermost-server-5.38.2/Makefile.orig 2021-06-10 14:40:25.000000000 +0200
+++ mattermost-server-5.38.2/Makefile 2021-06-16 20:24:17.505824000 +0200
@@ -21,13 +21,13 @@
# Build Flags
BUILD_NUMBER ?= $(BUILD_NUMBER:)
BUILD_DATE = $(shell date -u)
-BUILD_HASH = $(shell git rev-parse HEAD)
+BUILD_HASH = 000000
# If we don't set the build number it defaults to dev
ifeq ($(BUILD_NUMBER),)
BUILD_NUMBER := dev
endif
BUILD_ENTERPRISE_DIR ?= ../enterprise
-BUILD_ENTERPRISE ?= true
+BUILD_ENTERPRISE ?= false
BUILD_ENTERPRISE_READY = false
BUILD_TYPE_NAME = team
BUILD_HASH_ENTERPRISE = none
Index: mattermost-server-5.38.2/build/release.mk
--- mattermost-server-5.38.2/build/release.mk.orig 2021-06-10 14:40:25.000000000 +0200
+++ mattermost-server-5.38.2/build/release.mk 2021-06-16 20:24:17.506241000 +0200
@@ -54,7 +54,8 @@
env GOOS=windows GOARCH=amd64 $(GO) build -o $(GOBIN)/windows_amd64 $(GOFLAGS) -trimpath -ldflags '$(LDFLAGS)' ./cmd/...
endif
-build: build-linux build-windows build-osx
+build:
+ $(GO) build -v $(GOFLAGS) $(GO_LINKER_FLAGS) -o mattermost cmd/mattermost/*.go
build-cmd: build-cmd-linux build-cmd-windows build-cmd-osx
Index: mattermost/config/config.json
--- mattermost/config/config.json.orig 2021-06-10 15:33:13.000000000 +0200
+++ mattermost/config/config.json 2021-06-16 23:20:43.595672000 +0200
@@ -1,9 +1,9 @@
{
"ServiceSettings": {
- "SiteURL": "",
+ "SiteURL": "http://localhost:8080/",
"WebsocketURL": "",
"LicenseFileLocation": "",
- "ListenAddress": ":8065",
+ "ListenAddress": "127.0.0.1:8080",
"ConnectionSecurity": "",
"TLSCertFile": "",
"TLSKeyFile": "",
@@ -148,7 +148,7 @@
},
"SqlSettings": {
"DriverName": "postgres",
- "DataSource": "postgres://mmuser:mostest@localhost/mattermost_test?sslmode=disable\u0026connect_timeout=10",
+ "DataSource": "postgresql://mattermost:mattermost@127.0.0.1:5432/mattermost?sslmode=disable&connect_timeout=10",
"DataSourceReplicas": [],
"DataSourceSearchReplicas": [],
"MaxIdleConns": 20,
@@ -209,7 +209,7 @@
"EnableMobileDownload": true,
"MaxFileSize": 104857600,
"DriverName": "local",
- "Directory": "./data/",
+ "Directory": "@l_prefix@/var/mattermost/data-fs/",
"EnablePublicLink": false,
"ExtractContent": true,
"ArchiveRecursion": false,
@@ -233,15 +233,15 @@
"SendEmailNotifications": false,
"UseChannelInEmailNotifications": false,
"RequireEmailVerification": false,
- "FeedbackName": "",
- "FeedbackEmail": "",
- "ReplyToAddress": "",
- "FeedbackOrganization": "",
+ "FeedbackName": "Mattermost",
+ "FeedbackEmail": "mattermost@example.com",
+ "ReplyToAddress": "mattermost@example.com",
+ "FeedbackOrganization": "Example Corp.",
"EnableSMTPAuth": false,
"SMTPUsername": "",
"SMTPPassword": "",
- "SMTPServer": "",
- "SMTPPort": "10025",
+ "SMTPServer": "127.0.0.1",
+ "SMTPPort": "25",
"SMTPServerTimeout": 10,
"ConnectionSecurity": "",
"SendPushNotifications": true,
@@ -251,7 +251,7 @@
"EnableEmailBatching": false,
"EmailBatchingBufferSize": 256,
"EmailBatchingInterval": 30,
- "EnablePreviewModeBanner": true,
+ "EnablePreviewModeBanner": false,
"SkipServerCertificateVerification": false,
"EmailNotificationContentsType": "full",
"LoginButtonColor": "#0000",
@@ -386,7 +386,7 @@
},
"ComplianceSettings": {
"Enable": false,
- "Directory": "./data/",
+ "Directory": "@_prefix@/var/mattermost/data-fs/",
"EnableDaily": false,
"BatchSize": 30000
},
@@ -479,9 +479,9 @@
"MaxUsersForStatistics": 2500
},
"ElasticsearchSettings": {
- "ConnectionUrl": "http://localhost:9200",
+ "ConnectionUrl": "http://127.0.0.1:9200",
"Username": "elastic",
- "Password": "changeme",
+ "Password": "elastic",
"EnableIndexing": false,
"EnableSearching": false,
"EnableAutocomplete": false,
@@ -539,8 +539,8 @@
"EnableUploads": false,
"AllowInsecureDownloadUrl": false,
"EnableHealthCheck": true,
- "Directory": "./plugins",
- "ClientDirectory": "./client/plugins",
+ "Directory": "@l_prefix@/lib/mattermost/plugins",
+ "ClientDirectory": "@l_prefix@/etc/mattermost/plugins",
"Plugins": {},
"PluginStates": {
"com.mattermost.nps": {
@@ -594,4 +594,4 @@
"Directory": "./export",
"RetentionDays": 30
}
-}
\ No newline at end of file
+}