refactor: 脚本及配置文件命名统一用 _ 分隔
将 .sh/.bat 脚本与 .js/.plist/.Dockerfile 等文件中以 - 分隔的文件名 改为 _ 分隔,dcloud-renew 目录改为 dcloud、script_nuance 目录改为 nuance,并同步更新脚本内部引用与 README 路径。 Co-Authored-By: AtomCode (deepseek-v4-flash) <noreply@atomgit.com>
This commit is contained in:
@@ -20,7 +20,7 @@ Add to crontab to run automatically:
|
|||||||
# Renew DCloud uniCloud free-tier subscriptions.
|
# Renew DCloud uniCloud free-tier subscriptions.
|
||||||
# Runs at 1:00 on the 26th of every month.
|
# Runs at 1:00 on the 26th of every month.
|
||||||
#
|
#
|
||||||
# Install with: crontab /Users/Shared/product-产品/opx/sysconfig/dcloud-renew/crontab.txt
|
# Install with: crontab /Users/Shared/product-产品/opx/sysconfig/dcloud/crontab.txt
|
||||||
# (That replaces your whole crontab; use `crontab -e` to merge with existing entries.)
|
# (That replaces your whole crontab; use `crontab -e` to merge with existing entries.)
|
||||||
0 1 26 * * source renew-all.sh >> /tmp/dcloud-renew.log 2>&1
|
0 1 26 * * source renew_all.sh >> /tmp/dcloud-renew.log 2>&1
|
||||||
```
|
```
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
"main": "renew.mjs",
|
"main": "renew.mjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"begin": "npm install && npx playwright install-deps && npx playwright install chromium",
|
"begin": "npm install && npx playwright install-deps && npx playwright install chromium",
|
||||||
"fire": "source renew-all.sh",
|
"fire": "source renew_all.sh",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
@@ -39,6 +39,6 @@ echo "::*** Config home with standard init files? [y] for yes, [anything else] f
|
|||||||
read -p "***:: " ConfigHome
|
read -p "***:: " ConfigHome
|
||||||
if [ "$ConfigHome" = "y" ]
|
if [ "$ConfigHome" = "y" ]
|
||||||
then
|
then
|
||||||
source /faronear/sysconfig/nixhome-config.sh /faronear/sysconfig/nixhome $NewUser
|
source /faronear/sysconfig/nixhome_config.sh /faronear/sysconfig/nixhome $NewUser
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
@@ -2,7 +2,7 @@ FROM debian:12.8
|
|||||||
LABEL org.opencontainers.image.authors="luk"
|
LABEL org.opencontainers.image.authors="luk"
|
||||||
|
|
||||||
RUN apt update && apt install curl -y
|
RUN apt update && apt install curl -y
|
||||||
RUN curl -s https://git.tic.cc/opx/sysconfig/raw/branch/main/debian-setup.sh | bash
|
RUN curl -s https://git.tic.cc/opx/sysconfig/raw/branch/main/debian_setup.sh | bash
|
||||||
|
|
||||||
CMD bash
|
CMD bash
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
## "curl -s https://git.tic.cc/opx/sysconfig/raw/branch/main/debian-setup.sh | bash"
|
## "curl -s https://git.tic.cc/opx/sysconfig/raw/branch/main/debian_setup.sh | bash"
|
||||||
|
|
||||||
echo "Usage: this.sh [NewUser]"
|
echo "Usage: this.sh [NewUser]"
|
||||||
echo "Example: this.sh alice"
|
echo "Example: this.sh alice"
|
||||||
@@ -32,7 +32,7 @@ fi
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
echo "::*** Configure root home"
|
echo "::*** Configure root home"
|
||||||
source /faronear/sysconfig/nixhome-config.sh /faronear/sysconfig/nixhome root
|
source /faronear/sysconfig/nixhome_config.sh /faronear/sysconfig/nixhome root
|
||||||
echo
|
echo
|
||||||
|
|
||||||
# echo "::*** Change root password? [y] for yes, [anything else] for omit:"
|
# echo "::*** Change root password? [y] for yes, [anything else] for omit:"
|
||||||
@@ -106,8 +106,8 @@ echo
|
|||||||
# read -p "***:: " AddNewUser
|
# read -p "***:: " AddNewUser
|
||||||
# if [ "$AddNewUser" == 'y' ]
|
# if [ "$AddNewUser" == 'y' ]
|
||||||
# then
|
# then
|
||||||
# source /faronear/sysconfig/debian-add-user.sh $NewUser
|
# source /faronear/sysconfig/debian_add_user.sh $NewUser
|
||||||
# source /faronear/sysconfig/nixhome-config.sh /faronear/sysconfig/nixhome $NewUser
|
# source /faronear/sysconfig/nixhome_config.sh /faronear/sysconfig/nixhome $NewUser
|
||||||
|
|
||||||
# echo
|
# echo
|
||||||
# echo "::*** Enable xfce autologin [/etc/lightdm/lightdm.conf]: [y] for autologin as [[$NewUser]] or [anything else] for no change:"
|
# echo "::*** Enable xfce autologin [/etc/lightdm/lightdm.conf]: [y] for autologin as [[$NewUser]] or [anything else] for no change:"
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
## "curl -s https://git.tic.cc/opx/sysconfig/raw/branch/main/debian-update.sh | bash"
|
## "curl -s https://git.tic.cc/opx/sysconfig/raw/branch/main/debian_update.sh | bash"
|
||||||
|
|
||||||
echo "Update Debian's currently-installed major version to the next newer major version. For instance, update 11 to 12, or 12 to 13"
|
echo "Update Debian's currently-installed major version to the next newer major version. For instance, update 11 to 12, or 12 to 13"
|
||||||
echo
|
echo
|
||||||
@@ -37,7 +37,7 @@ if [ $targetUrl ]
|
|||||||
then
|
then
|
||||||
read -p "Enter adot password (ROAD) >>" PWD_ADOT
|
read -p "Enter adot password (ROAD) >>" PWD_ADOT
|
||||||
read -p "Enter root password (YU) >>" PWD_ROOT
|
read -p "Enter root password (YU) >>" PWD_ROOT
|
||||||
expect ~/faronear/sysconfig/expect-ssh.sh $targetUrl adot $PWD_ADOT $PWD_ADOT
|
expect ~/faronear/sysconfig/expect_ssh.sh $targetUrl adot $PWD_ADOT $PWD_ADOT
|
||||||
else
|
else
|
||||||
while [ ! "$HOST" ]
|
while [ ! "$HOST" ]
|
||||||
do
|
do
|
||||||
@@ -59,5 +59,5 @@ else
|
|||||||
read -p "root password = " ROOT_SU
|
read -p "root password = " ROOT_SU
|
||||||
done
|
done
|
||||||
|
|
||||||
expect ~/sysconfig/expect-ssh.sh $HOST $USER $PWD_USER $PWD_SU
|
expect ~/sysconfig/expect_ssh.sh $HOST $USER $PWD_USER $PWD_SU
|
||||||
fi
|
fi
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
<string>mac-create-vdisk</string>
|
<string>mac-create-vdisk</string>
|
||||||
<key>ProgramArguments</key>
|
<key>ProgramArguments</key>
|
||||||
<array>
|
<array>
|
||||||
<string>/etc/mac-create-vdisk.sh</string>
|
<string>/etc/mac_create_vdisk.sh</string>
|
||||||
</array>
|
</array>
|
||||||
<key>RunAtLoad</key>
|
<key>RunAtLoad</key>
|
||||||
<true/>
|
<true/>
|
||||||
@@ -94,4 +94,4 @@ EOF
|
|||||||
|
|
||||||
# copy this script to some public folder, e.g. `sudo cp $(basename $0) /etc/`, because in my test, it doesn't work in /Users/...
|
# copy this script to some public folder, e.g. `sudo cp $(basename $0) /etc/`, because in my test, it doesn't work in /Users/...
|
||||||
# copy the corresponding plist file to /Library/LaunchDaemons/,
|
# copy the corresponding plist file to /Library/LaunchDaemons/,
|
||||||
# optionally run `sudo launchctl load /Library/LaunchDaemons/my-launch-file.plist` immediately for test.
|
# optionally run `sudo launchctl load /Library/LaunchDaemons/my_launch_file.plist` immediately for test.
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user