diff --git a/cello-install.sh b/cello-install.sh index 11aa37b..f7c62c4 100644 --- a/cello-install.sh +++ b/cello-install.sh @@ -1,6 +1,6 @@ echo Docker and Docker-Compose should be installed in prior. - -git clone https://github.com/hyperledger/cello +echo [202205] 发现必须下载版本,不能用最新代码,否则无法安装成功。 +git clone -b v1.0.0-alpha https://github.com/hyperledger/cello cd cello diff --git a/linux-add-user.sh b/debian-add-user.sh similarity index 81% rename from linux-add-user.sh rename to debian-add-user.sh index 02e0e41..d0a1e13 100755 --- a/linux-add-user.sh +++ b/debian-add-user.sh @@ -20,8 +20,13 @@ passwd $NewUser mkdir /home/$NewUser chown $NewUser:$NewUser /home/$NewUser chmod 700 /home/$NewUser -# emacs /etc/passwd + +# Set default shell in /etc/passwd # Debian 10 default to /bin/sh sed -i "s/\/home\/$NewUser:\/bin\/sh$/\/home\/$NewUser:\/bin\/bash/g" /etc/passwd # Debian 9 default to empty sed -i "s/\/home\/$NewUser:$/\/home\/$NewUser:\/bin\/bash/g" /etc/passwd + +# Allow sudo +echo "$NewUser ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/$NewUser +chmod a-w /etc/sudoers.d/$NewUser \ No newline at end of file diff --git a/git-clone-all.bat b/git-clone-all.bat index 1398bb2..56bcb44 100644 --- a/git-clone-all.bat +++ b/git-clone-all.bat @@ -108,9 +108,9 @@ popd mkdir tuc-ext pushd tuc-ext git clone https://git.faronear.org/tuc-ext/ext -git clone https://git.faronear.org/tuc-ext/ext.blog.hexo -git clone https://git.faronear.org/tuc-ext/ext.server.torm -git clone https://git.faronear.org/tuc-ext/ext.user.uniapp +git clone https://git.faronear.org/tuc-ext/ext-blog-hexo +git clone https://git.faronear.org/tuc-ext/ext-server-torm +git clone https://git.faronear.org/tuc-ext/ext-user-uniapp popd mkdir tuc-log diff --git a/git-clone-all.sh b/git-clone-all.sh index a30dde4..26e978c 100644 --- a/git-clone-all.sh +++ b/git-clone-all.sh @@ -46,8 +46,6 @@ git clone https://git.faronear.org/npm/corend-i18n git clone https://git.faronear.org/npm/corend-toolkit git clone https://git.faronear.org/npm/corend-rpcsocket -git clone https://git.faronear.org/npm/template.user.uniapp - git clone https://git.faronear.org/npm/tic-crypto git clone https://git.faronear.org/npm/tic-chaintool git clone https://git.faronear.org/npm/tic-traction @@ -109,9 +107,9 @@ popd mkdir tuc-ext pushd tuc-ext git clone https://git.faronear.org/tuc-ext/ext -git clone https://git.faronear.org/tuc-ext/ext.blog.hexo -git clone https://git.faronear.org/tuc-ext/ext.server.torm -git clone https://git.faronear.org/tuc-ext/ext.user.uniapp +git clone https://git.faronear.org/tuc-ext/ext-blog-hexo +git clone https://git.faronear.org/tuc-ext/ext-server-torm +git clone https://git.faronear.org/tuc-ext/ext-user-uniapp popd mkdir tuc-log