yuki-kimoto / gitprep

Portable GitHub system into your own server
http://gitprep.yukikimoto.com/
912 stars 117 forks source link

Better and easier setup + update #197

Closed bilogic closed 1 year ago

bilogic commented 1 year ago

For #186 and #196

yuki-kimoto commented 1 year ago

Thank you very much. Almost OK.

Could you create setup_script and setup_config and call from setup?

setup_script

#!/bin/sh

CUR_DIR_ABS=$(cd $(dirname $0); pwd)

# Create gitprep-shell script

CURRENT_PERL=`which perl`
echo '#!/bin/sh' > script/gitprep-shell
echo -n "$CURRENT_PERL $CUR_DIR_ABS/script/gitprep-shell-raw" >> script/gitprep-shell
echo ' $*' >> script/gitprep-shell
chmod 755 script/gitprep-shell

setup_config

#!/bin/sh

# create config file from example if so that we can get going

if [ ! -e gitprep.conf ]; then
    cp gitprep.conf.example gitprep.conf
fi

setup

#!/bin/sh

./setup_module
./setup_script
./setup_config
./setup_database
yuki-kimoto commented 1 year ago

About custom_template_folder, I wait for a reply from @emil-perhinschi for a while.

bilogic commented 1 year ago

Done. I had to comment out custom_template_folder, otherwise can't install as not everyone has that hardcoded path.

yuki-kimoto commented 1 year ago

Thank you very much.

https://github.com/yuki-kimoto/gitprep/pull/197/commits/be70874ce789ce9bbffa265d981cb74b997326b9

I can merge this.

Done. I had to comment out custom_template_folder, otherwise can't install as not everyone has that hardcoded path.

OK. I also think so.

I inform @emil-perhinschi this commit.

bilogic commented 1 year ago

arigato!