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