Daniel Gibbs 4 lat temu
rodzic
commit
850694bcc3

+ 1 - 1
lgsm/functions/alert_discord.sh

@@ -61,7 +61,7 @@ json=$(cat <<EOF
 				"url": "${alertimage}"
 				"url": "${alertimage}"
 			},
 			},
 			"footer": {
 			"footer": {
-				"text": "Powered by LinuxGSM",
+				"text": "Powered by LinuxGSM ${version}",
 				"icon_url": "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/alert_discord_logo.jpg"
 				"icon_url": "https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/lgsm/data/alert_discord_logo.jpg"
 			}
 			}
 		}
 		}

+ 2 - 2
lgsm/functions/alert_slack.sh

@@ -80,7 +80,7 @@ json=$(cat <<EOF
 				},
 				},
 				{
 				{
 					"type": "mrkdwn",
 					"type": "mrkdwn",
-					"text": "[${alertip}:${port}"
+					"text": "${alertip}:${port}"
 				},
 				},
 				{
 				{
 					"type": "mrkdwn",
 					"type": "mrkdwn",
@@ -113,7 +113,7 @@ json=$(cat <<EOF
 				},
 				},
 				{
 				{
 					"type": "plain_text",
 					"type": "plain_text",
-					"text": "Powered by LinuxGSM",
+					"text": "Powered by LinuxGSM ${version}",
 					"emoji": true
 					"emoji": true
 				}
 				}
 			]
 			]