u
This commit is contained in:
parent
6161344403
commit
117bd403b6
@ -1,11 +1,10 @@
|
|||||||
curl https://get.acme.sh | sh -s email=ssl@faronear.org
|
curl https://get.acme.sh | sh -s email=ssl@faronear.org
|
||||||
## 或者:
|
## 或者:
|
||||||
# git clone https://github.com/acmesh-official/acme.sh.git
|
# git clone https://github.com/acmesh-official/acme.sh.git .acme.sh
|
||||||
# cd ./acme.sh
|
# cd .acme.sh
|
||||||
# ./acme.sh --install -m my@example.com
|
# ./acme.sh --install -m my@example.com
|
||||||
|
|
||||||
pushd /faronear/sysconfig
|
pushd /faronear/sysconfig
|
||||||
# 取消被默认添加到 .bashrc 的设置
|
# 取消被默认添加到 .bashrc 的设置,因为 already integrated in .bashrc
|
||||||
git reset . && git checkout .
|
git reset . && git checkout .
|
||||||
# echo '. "$HOME/.acme.sh/acme.sh.env"' >> ~/.bashrc_custom ## already integrated in .bashrc
|
|
||||||
popd
|
popd
|
||||||
|
3
acme-uninstall.sh
Normal file
3
acme-uninstall.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
acme.sh --uninstall
|
||||||
|
|
||||||
|
rm -r ~/.acme.sh
|
@ -25,6 +25,8 @@ echo *** Testing Path [[%ROOTPATH1%]] [[%ROOTPATH2%]] [[%ROOTPATH3%]]
|
|||||||
echo;
|
echo;
|
||||||
if "" == "%ROOTPATH%" (
|
if "" == "%ROOTPATH%" (
|
||||||
set ROOTPATH=%CD%
|
set ROOTPATH=%CD%
|
||||||
|
) else (
|
||||||
|
for %P in (%ROOTPATH%) do set "ROOTPATH=%~dpnxP"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -35,15 +37,13 @@ if not exist "%ROOTPATH%" (
|
|||||||
echo √√√ ROOTPATH = [[%ROOTPATH%]]
|
echo √√√ ROOTPATH = [[%ROOTPATH%]]
|
||||||
)
|
)
|
||||||
|
|
||||||
pushd %ROOTPATH%
|
echo === Enter [path to .gitignore_global] or [leave blank] for default [[%CD%]]
|
||||||
echo *** Starting from [[%CD%]] ***
|
|
||||||
echo;
|
|
||||||
|
|
||||||
echo === Enter [path to global .gitignore] or [leave blank] for default [[%CD%]]
|
|
||||||
set /p IGNOREPATH=">>> "
|
set /p IGNOREPATH=">>> "
|
||||||
echo;
|
echo;
|
||||||
if "" == "%IGNOREPATH%" (
|
if "" == "%IGNOREPATH%" (
|
||||||
set IGNOREPATH=%CD%
|
set IGNOREPATH=%CD%/.gitignore_global
|
||||||
|
) else (
|
||||||
|
for %P in (%IGNOREPATH%) do set "IGNOREPATH=%~dpnxP/.gitignore_global"
|
||||||
)
|
)
|
||||||
if not exist "%IGNOREPATH%" (
|
if not exist "%IGNOREPATH%" (
|
||||||
echo ××× [[%IGNOREPATH%]] not exist! Exit now. ***
|
echo ××× [[%IGNOREPATH%]] not exist! Exit now. ***
|
||||||
@ -52,6 +52,10 @@ if not exist "%IGNOREPATH%" (
|
|||||||
echo √√√ IGNOREPATH = [[%IGNOREPATH%]]
|
echo √√√ IGNOREPATH = [[%IGNOREPATH%]]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
pushd %ROOTPATH%
|
||||||
|
echo *** Starting from [[%CD%]] ***
|
||||||
|
echo;
|
||||||
|
|
||||||
for /d /r %%r in (*) do (
|
for /d /r %%r in (*) do (
|
||||||
@REM @ if not "%%r" == ".vscode" (
|
@REM @ if not "%%r" == ".vscode" (
|
||||||
echo "%%r" | findstr "node_modules uni_modules .deploy_git .git .svn .vscode unpackage _webroot _logstore _datasotre _archive _filestore _ssl" >NUL || (
|
echo "%%r" | findstr "node_modules uni_modules .deploy_git .git .svn .vscode unpackage _webroot _logstore _datasotre _archive _filestore _ssl" >NUL || (
|
||||||
|
@ -56,7 +56,7 @@ echo ""
|
|||||||
|
|
||||||
find . -mindepth 1 -maxdepth 3 -type d -name '[^.]*' | grep -E -v 'node_modules|uni_modules|\.deploy_git|\.git|.svn|\.vscode|\.wrangler|unpackage|_webroot|_logstore|_datasotre|_archive|_filestore|_ssl' | while read repo
|
find . -mindepth 1 -maxdepth 3 -type d -name '[^.]*' | grep -E -v 'node_modules|uni_modules|\.deploy_git|\.git|.svn|\.vscode|\.wrangler|unpackage|_webroot|_logstore|_datasotre|_archive|_filestore|_ssl' | while read repo
|
||||||
do
|
do
|
||||||
if [ -d "$repo/.gitignore" ] # some git repo need to keep privacy, therefore judge from .gitignore, not from .git
|
if [ -f "$repo/.gitignore" ] # some git repo need to keep privacy, therefore judge from .gitignore, not from .git
|
||||||
then
|
then
|
||||||
echo "---- updating .gitignore in [[$repo]] ----"
|
echo "---- updating .gitignore in [[$repo]] ----"
|
||||||
cat $IGNOREPATH $repo/.gitignore_local 2>/dev/null > $repo/.gitignore
|
cat $IGNOREPATH $repo/.gitignore_local 2>/dev/null > $repo/.gitignore
|
||||||
|
@ -7,13 +7,11 @@ else
|
|||||||
echo ""
|
echo ""
|
||||||
echo "=== Enter [root path] or [leave blank] for default to [[`pwd`]]"
|
echo "=== Enter [root path] or [leave blank] for default to [[`pwd`]]"
|
||||||
read -p ">>> " ROOTPATH
|
read -p ">>> " ROOTPATH
|
||||||
echo ""
|
|
||||||
if [ ! "$ROOTPATH" ]
|
if [ ! "$ROOTPATH" ]
|
||||||
then
|
then
|
||||||
ROOTPATH=`pwd`
|
ROOTPATH=`pwd`
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "$ROOTPATH" ]
|
if [ ! -d "$ROOTPATH" ]
|
||||||
then
|
then
|
||||||
echo "××× [[$ROOTPATH]] not exist! Exit now. ***"
|
echo "××× [[$ROOTPATH]] not exist! Exit now. ***"
|
||||||
@ -21,6 +19,7 @@ then
|
|||||||
else
|
else
|
||||||
echo "√√√ ROOTPATH = [[$ROOTPATH]]"
|
echo "√√√ ROOTPATH = [[$ROOTPATH]]"
|
||||||
fi
|
fi
|
||||||
|
echo ""
|
||||||
|
|
||||||
pushd $ROOTPATH
|
pushd $ROOTPATH
|
||||||
echo "*** Starting from [[`pwd`]] ***"
|
echo "*** Starting from [[`pwd`]] ***"
|
||||||
|
@ -25,6 +25,8 @@ echo *** Testing Path [[%ROOTPATH1%]] [[%ROOTPATH2%]] [[%ROOTPATH3%]]
|
|||||||
echo;
|
echo;
|
||||||
if "" == "%ROOTPATH%" (
|
if "" == "%ROOTPATH%" (
|
||||||
set ROOTPATH=%CD%
|
set ROOTPATH=%CD%
|
||||||
|
) else (
|
||||||
|
for %P in (%ROOTPATH%) do set "ROOTPATH=%~dpnxP"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -35,11 +37,13 @@ if not exist "%ROOTPATH%" (
|
|||||||
echo √√√ ROOTPATH = [[%ROOTPATH%]]
|
echo √√√ ROOTPATH = [[%ROOTPATH%]]
|
||||||
)
|
)
|
||||||
|
|
||||||
echo === Enter [path to global seafile-ignore.txt] or [leave blank] for default [[%CD%]]
|
echo === Enter [path to seafile-ignore_global] or [leave blank] for default [[%CD%]]
|
||||||
set /p IGNOREPATH=">>> "
|
set /p IGNOREPATH=">>> "
|
||||||
echo;
|
echo;
|
||||||
if "" == "%IGNOREPATH%" (
|
if "" == "%IGNOREPATH%" (
|
||||||
set IGNOREPATH=%CD%
|
set IGNOREPATH=%CD%/seafile-ignore_global
|
||||||
|
) else (
|
||||||
|
for %P in (%IGNOREPATH%) do set "IGNOREPATH=%~dpnxP/seafile-ignore_global"
|
||||||
)
|
)
|
||||||
if not exist "%IGNOREPATH%" (
|
if not exist "%IGNOREPATH%" (
|
||||||
echo ××× [[%IGNOREPATH%]] not exist! Exit now. ***
|
echo ××× [[%IGNOREPATH%]] not exist! Exit now. ***
|
||||||
@ -57,7 +61,7 @@ for /d /r %%r in (*) do (
|
|||||||
echo "%%r" | findstr "node_modules uni_modules .deploy_git .git .svn .vscode unpackage _webroot _logstore _datasotre _archive _filestore _ssl" >NUL || (
|
echo "%%r" | findstr "node_modules uni_modules .deploy_git .git .svn .vscode unpackage _webroot _logstore _datasotre _archive _filestore _ssl" >NUL || (
|
||||||
if exist "%%r\seafile-ignore.txt" (
|
if exist "%%r\seafile-ignore.txt" (
|
||||||
echo ---- updating seafile-ignore.txt in [[%%r]] ----
|
echo ---- updating seafile-ignore.txt in [[%%r]] ----
|
||||||
cat %IGNOREPATH%\seafile-ignore.txt %%r\seafile-ignore_local.txt > %%r\seafile-ignore.txt
|
cat %IGNOREPATH% %%r\seafile-ignore_local > %%r\seafile-ignore.txt
|
||||||
echo;
|
echo;
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user