diff options
| author | la-ninpre <leobrekalini@gmail.com> | 2020-12-04 17:22:43 +0300 |
|---|---|---|
| committer | la-ninpre <leobrekalini@gmail.com> | 2020-12-04 17:22:43 +0300 |
| commit | cca78be83a941a35c4abcfc8dfa7209a1c9aa515 (patch) | |
| tree | 359e1b59c6becab70b5cf4702ffe00be76226c87 | |
| parent | 3f53fecfe7319c034884417dfbfa0ade86685fcb (diff) | |
| download | dotfiles-cca78be83a941a35c4abcfc8dfa7209a1c9aa515.tar.gz dotfiles-cca78be83a941a35c4abcfc8dfa7209a1c9aa515.zip | |
add fossil init script link
| -rw-r--r-- | .bashrc | 33 |
1 files changed, 23 insertions, 10 deletions
@@ -37,13 +37,26 @@ pacs() { --preview-window=:hidden --bind=space:toggle-preview) } -finit() { - fossil init $1.fossil && \ - chmod 664 $1.fossil && \ - fossil open $1.fossil --workdir $1 && \ - fossil user password $USER $PASSWD && \ - fossil remote-url https://$USER:$PASSWD@aaoth.ml/$1 && \ - rsync --perms $1.fossil $USER@aaoth.ml:/var/www/htdocs/aaoth.ml >/dev/null && \ - chmod 644 $1.fossil && \ - fossil ui -} +FOSSILS_HOME=$HOME/Documents/Fossils + +# fossil init script +# modified version of one taken from +# https://www.fossil-scm.org/home/doc/trunk/www/server/openbsd/fastcgi.md + +source $HOME/.local/bin/finit + +# real one is there, but because it has some +#personal information, i'll not include it, but it almost identical to +#following: +# +#finit() { +# FINIT_REPO=$FOSSILS_HOME/$1.fossil +# fossil init $FINIT_REPO && \ +# chmod 664 $FINIT_REPO && \ +# fossil open $FINIT_REPO --workdir $HOME/Documents/$1 && \ +# fossil user -R $FINIT_REPO password $USER $PASSWD && \ +# fossil remote-url -R $FINIT_REPO https://$USER@domain.tld/$1 && \ +# rsync --perms $FINIT_REPO $USER@domain.tld:/var/www/fossils/ \ +# >/dev/null && \ +# chmod 644 $FINIT_REPO +#} |
