Browse Source

add maloja, add missing executetables `+x` on tiddlywiki, clamav (#127)

* add maloja, add missing executetables `+x` on tiddlywiki, clamav

* add missing prer install

* fix image icon
Dedy Martadinata S 2 năm trước cách đây
mục cha
commit
95d6170045

BIN
images/maloja.png


+ 39 - 0
template/apps/maloja.json

@@ -0,0 +1,39 @@
+{
+	"categories": [
+		"Music"
+	],
+	"description": "Simple self-hosted music scrobble database to create personal listening statistics. No recommendations, no social network, no nonsense.",
+	"env": [
+		{
+			"default": "malojapassword",
+			"label": "MALOJA_FORCE_PASSWORD",
+			"name": "MALOJA_FORCE_PASSWORD"
+		},
+		{
+			"default": "/data",
+			"label": "MALOJA_DATA_DIRECTORY",
+			"name": "MALOJA_DATA_DIRECTORY"
+		}
+	],
+	"image_arm32": "krateng/maloja:latest",
+	"image_arm64": "krateng/maloja:latest",
+	"image_amd64": "krateng/maloja:latest",
+	"logo": "https://raw.githubusercontent.com/pi-hosted/pi-hosted/master/images/maloja.png",
+	"name": "maloja",
+	"officialDoc": "https://github.com/krateng/maloja/blob/master/README.md",
+        "preInstallScript": "install_maloja.sh",
+	"platform": "linux",
+	"ports": [
+		"42010:42010/tcp"
+	],
+	"restart_policy": "unless-stopped",
+	"title": "Maloja",
+	"type": 1,
+	"volumes": [
+		{
+			"bind": "/portainer/Files/AppData/Config/Maloja/Data",
+			"container": "/data"
+		}
+	],
+	"webpage": "https://github.com/krateng/maloja"
+}

+ 21 - 0
tools/install_clamav.sh

@@ -0,0 +1,21 @@
+#!/bin/bash
+
+function error {
+  echo -e "\\e[91m$1\\e[39m"
+  exit 1
+}
+
+#function check_internet() {
+#  printf "Checking if you are online..."
+#  wget -q --spider http://github.com
+#  if [ $? -eq 0 ]; then
+#    echo "Online. Continuing."
+#  else
+#    error "Offline. Go connect to the internet then run the script again."
+#  fi
+#}
+
+check_internet
+
+echo "Creating directories..."
+sudo mkdir -p /portainer/Files/AppData/Config/Maloja/Data || error "Failed to create Maloja data directory!"

+ 0 - 0
tools/install_tiddlywiki.sh