update comments and output
[webi-installers/.git] / gitea / install.bash
index 527f12f589262265e3375a60b214e771fe39d2ee..d54a3e5a828bd4d202ca4a220ee59b87ae27bff0 100644 (file)
@@ -1,16 +1,17 @@
 # title: Gitea
 # homepage: https://github.com/go-gitea/gitea
-# tagline: Fast, multi-platform web server with automatic HTTPS
+# tagline: Git with a cup of tea, painless self-hosted git service 
 # description: |
-# Caddy is an extensible server platform that uses TLS by default.
+#   `gitea` is a clean, lightweight self-hosted Github alternative, forked from Gogs. Lighter and more user-friendly than Gitlab.
 # examples: |
 #   ```bash
-#   gitea start
+#   gitea --version
 #   ```
 
 set -e
 set -u
 
+pkg_cmd_name="gitea"
 pkg_common_opt="$HOME/.local"
 
 # just a junk file so that the version check always fails for non-current versions
@@ -51,6 +52,7 @@ pkg_install() {
         # (this will be "$HOME/.local/bin/gitea" by default)
         mkdir -p "$pkg_common_bin"
         mv ./"$pkg_cmd_name"* "$pkg_common_cmd"
+        chmod a+x "$pkg_common_cmd"
 
     popd 2>&1 >/dev/null
 }
@@ -63,3 +65,7 @@ pkg_post_install() {
     # Adds "$HOME/.local/bin" to PATH
     webi_path_add "$pkg_common_bin"
 }
+
+pkg_post_install_message() {
+    echo "Installed 'gitea' as $pkg_common_cmd"
+}