38 lines
1.4 KiB
Bash
Executable File
38 lines
1.4 KiB
Bash
Executable File
#!/data/data/com.termux/files/usr/bin/bash
|
|
|
|
# setup termux storage first
|
|
/data/data/com.termux/files/usr/bin/termux-setup-storage
|
|
|
|
targetpath=/data/data/com.termux/files/home/storage/documents/
|
|
outoftermux=/storage/self/primary/Documents/
|
|
|
|
/data/data/com.termux/files/usr/bin/echo "Will be downloading to the target path (and subfolder logseq-gitea)"
|
|
/data/data/com.termux/files/usr/bin/echo $targetpath
|
|
/data/data/com.termux/files/usr/bin/echo "Path above is from the Termux perspective, from system perspective its:"
|
|
/data/data/com.termux/files/usr/bin/echo $outoftermux
|
|
/data/data/com.termux/files/usr/bin/echo "press enter for continue"
|
|
read
|
|
|
|
/data/data/com.termux/files/usr/bin/pkg update
|
|
/data/data/com.termux/files/usr/bin/pkg upgrade
|
|
|
|
/data/data/com.termux/files/usr/bin/pkg install git openssh
|
|
|
|
|
|
/data/data/com.termux/files/usr/bin/git config --global user.name "Stepan Kuklis"
|
|
/data/data/com.termux/files/usr/bin/git config --global user.email panpanika@gmail.com
|
|
|
|
|
|
/data/data/com.termux/files/usr/bin/mkdir -p ${targetpath}logseq-gitea
|
|
|
|
cd ${targetpath}logseq-gitea/
|
|
pwd
|
|
|
|
eval "$(/data/data/com.termux/files/usr/bin/ssh-agent -s)"
|
|
/data/data/com.termux/files/usr/bin/ssh-add ~/.ssh/logseq_id_rsa
|
|
|
|
/data/data/com.termux/files/usr/bin/git clone ssh://git@gitea.panpanika.eu:2222/panika-logseq/logseq.git
|
|
|
|
/data/data/com.termux/files/usr/bin/git config --global --add safe.directory ${targetpath}logseq-gitea/logseq
|
|
|