summaryrefslogtreecommitdiffstats
path: root/linhes
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2023-02-05 00:15:12 (GMT)
committerBritney Fransen <brfransen@gmail.com>2023-02-05 00:15:12 (GMT)
commit0d99a5a6304e44bd047685683b96627489a44592 (patch)
tree41b93066e9cf224c865305f5bf6424334e8482c9 /linhes
parent65c7997d84ef28bff0c78015b0fdc63574bed1c8 (diff)
downloadlinhes_pkgbuild-0d99a5a6304e44bd047685683b96627489a44592.zip
linhes_pkgbuild-0d99a5a6304e44bd047685683b96627489a44592.tar.gz
linhes_pkgbuild-0d99a5a6304e44bd047685683b96627489a44592.tar.bz2
linhes-dev: lh_setup_dev.sh: create rclone.conf if needed
Diffstat (limited to 'linhes')
-rw-r--r--linhes/linhes-dev/PKGBUILD4
-rwxr-xr-xlinhes/linhes-dev/lh_setup_dev.sh3
2 files changed, 5 insertions, 2 deletions
diff --git a/linhes/linhes-dev/PKGBUILD b/linhes/linhes-dev/PKGBUILD
index c7e559a..ce1d3dc 100644
--- a/linhes/linhes-dev/PKGBUILD
+++ b/linhes/linhes-dev/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=linhes-dev
pkgver=9.0.0
-pkgrel=13
+pkgrel=14
pkgdesc="Scripts to develop LinHES"
arch=('x86_64')
license=('GPL2')
@@ -11,7 +11,7 @@ source=('lh_sync.sh' 'chk_aur_pkg.py' 'mp.py' 'lh_setup_dev.sh' 'lh_update_db_re
sha256sums=('3a64b4125b56c6f95cc9dc85ce58ebd1c0612b22fb27c3e76d4d9a5570f2d61e'
'864192e9fe627c5a85d4c33ba30df7c870783a450f5fea7c550dd9490d48f2ab'
'025776558632dc60da5a97cc66a4fb52b31882eff7aeaf5476a8e40107e39a87'
- '6351971bb5249c7be7af4e0bfee0e06842ef671fb9ef71458bf0650be6634fad'
+ '8ee79d9c33b64063c06c1651bfca675ae8b691b74f724c2dfe5a4f9cee74411b'
'86c9ebe77228f7e3cc07cb05f480e5584e0e3cad1b889b63a50821f7323bf449')
package() {
diff --git a/linhes/linhes-dev/lh_setup_dev.sh b/linhes/linhes-dev/lh_setup_dev.sh
index 4c0bcd1..1e535a6 100755
--- a/linhes/linhes-dev/lh_setup_dev.sh
+++ b/linhes/linhes-dev/lh_setup_dev.sh
@@ -55,6 +55,9 @@ END
fi
echo -e "\n\nAdd rclone.conf..."
+if [ ! -f ~/.config/rclone/rclone.conf ]; then
+ mkdir -p ~/.config/rclone && touch ~/.config/rclone/rclone.conf
+fi
if ! grep -q 'host = linhes.org' ~/.config/rclone/rclone.conf; then
cat >> ~/.config/rclone/rclone.conf<<END
[ssh]