commit 532f2b15a00fdb02bacc9076b3148831f570abd7
parent e4070662d899192db82207eb90badc07d51bcbb5
Author: kst
Date: 2020-07-20 04:21Z

use fqdn for for url prefix

Diffstat:
Mgrm | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/grm b/grm @@ -9,7 +9,7 @@ GRM_REPOS_ROOT="$HOME/public_html" # default url prefix (without ending slash) -GRM_URL_PREFIX="https://tilde.team/~$USER" +GRM_URL_PREFIX="https://$(hostname -f)/~$USER" # path of the post-receive hooks for stagit GRM_POSTRECV_HOOK="$HOME/bin/stagit-post-receive" @@ -72,7 +72,7 @@ RESET="\033[0m" grm_new() { set -e - url_prefix=${GRM_URL_PREFIX:-https://tilde.team/~$USER} + url_prefix=${GRM_URL_PREFIX:-https://$(hostname -f)/~$USER} postrecv_path=${GRM_POSTRECV_HOOK:-$HOME/bin/stagit-post-receive} default_desc="a work in progress"