From ee5d4dbb997d904a399fb576a9f0f6be7b235e17 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 21 Jan 2024 02:07:05 +0300 Subject: [PATCH] cleanup... Signed-off-by: Alex A. Naanou --- .pct-helpers | 1 - ssh/make.sh | 6 ++++++ syncthing/make.sh | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.pct-helpers b/.pct-helpers index 132003a..cd1d7dc 100644 --- a/.pct-helpers +++ b/.pct-helpers @@ -657,7 +657,6 @@ pctBaseCreate(){ #SWAP= #DRIVE= #PCT_EXTRA= -# XXX pctCreate(){ # build network args... local interfaces_args=() diff --git a/ssh/make.sh b/ssh/make.sh index 3bb7053..7d6b4bd 100755 --- a/ssh/make.sh +++ b/ssh/make.sh @@ -56,12 +56,18 @@ OPTS_STAGE_2="\ #---------------------------------------------------------------------- +echo "# Building config..." +buildAssets + echo "# Creating CT..." pctCreateDebian $ID "$PASS" echo "# Installing dependencies..." @ lxc-attach $ID -- bash -c 'yes | apt install vim htop iftop iotop tmux mc sudo' +echo "# Copying assets..." +pctPushAssets $ID + echo "# Setup: users..." while true ; do xread "user name for ssh: " SSH_USER diff --git a/syncthing/make.sh b/syncthing/make.sh index 53f7381..96d5142 100755 --- a/syncthing/make.sh +++ b/syncthing/make.sh @@ -57,12 +57,12 @@ buildAssets echo "# Creating CT..." pctCreateAlpine $ID "$PASS" -echo "# Copying assets..." -pctPushAssets $ID - echo "# Installing dependencies..." @ lxc-attach $ID apk add bash syncthing logrotate +echo "# Copying assets..." +pctPushAssets $ID + echo "# Setup: sysctl..." @ lxc-attach $ID rc-update add sysctl