Skip to content

Commit

Permalink
🚑 Use OreosLab_checkinpanel
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreomeow committed Oct 15, 2022
1 parent 4b22c6b commit 44b456f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion api_json52toml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ get_some_path
json52toml() {
if [ -f "${CONF_PATH}/config.sh" ]; then
sed -i '/^RepoFileExtensions/c RepoFileExtensions="js pl py sh ts"' "${CONF_PATH}/config.sh"
cp -f "${REPO_PATH}/Oreomeow_checkinpanel_master/check.sample.toml" "${CONF_PATH}/check.template.toml"
cp -f "${REPO_PATH}/OreosLab_checkinpanel_master/check.sample.toml" "${CONF_PATH}/check.template.toml"
fi
find . -type f -name '*utils_json52toml.pl' -exec perl {} \;
}
Expand Down
2 changes: 1 addition & 1 deletion api_ran_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def init_cron(self):
self.cron = list(
filter(
lambda x: not x.get("isDisabled", 1)
and x.get("command", "").find("Oreomeow_checkinpanel_master") != -1,
and x.get("command", "").find("OreosLab_checkinpanel_master") != -1,
requests.get(
url=f"{self.url}open/crons",
headers={"Authorization": f"Bearer {self.token}"},
Expand Down
10 changes: 5 additions & 5 deletions ins_pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ install_py_reqs() {
}

install_js_pkgs_initial() {
if [ -d "${SCR_PATH}/Oreomeow_checkinpanel_master" ]; then
cd "${SCR_PATH}/Oreomeow_checkinpanel_master" &&
cp "${REPO_PATH}/Oreomeow_checkinpanel_master/package.json" "${SCR_PATH}/Oreomeow_checkinpanel_master/package.json"
if [ -d "${SCR_PATH}/OreosLab_checkinpanel_master" ]; then
cd "${SCR_PATH}/OreosLab_checkinpanel_master" &&
cp "${REPO_PATH}/OreosLab_checkinpanel_master/package.json" "${SCR_PATH}/OreosLab_checkinpanel_master/package.json"
elif [ -d "/ql/scripts" ] && [ ! -f "/ql/scripts/package.bak.json" ]; then
cd /ql/scripts || exit
rm -rf node_modules
Expand All @@ -80,7 +80,7 @@ install_js_pkgs_initial() {
node -e \
"const merge = require('package-merge');
const fs = require('fs');
const dst = fs.readFileSync('/ql/repo/Oreomeow_checkinpanel_master/package.json');
const dst = fs.readFileSync('/ql/repo/OreosLab_checkinpanel_master/package.json');
const src = fs.readFileSync('/ql/scripts/package.bak.json');
fs.writeFile('/ql/scripts/package.json', merge(dst, src), function (err) {
if (err) {
Expand Down Expand Up @@ -125,7 +125,7 @@ install_pl_mods() {
if [ -f ./cpm ]; then
chmod +x cpm && ./cpm --version
else
cp -f /ql/repo/Oreomeow_checkinpanel_master/cpm ./ && chmod +x cpm && ./cpm --version
cp -f /ql/repo/OreosLab_checkinpanel_master/cpm ./ && chmod +x cpm && ./cpm --version
if [ ! -f ./cpm ]; then
curl -fsSL https://cdn.jsdelivr.net/gh/Oreomeow/checkinpanel/cpm >cpm && chmod +x cpm && ./cpm --version
fi
Expand Down
2 changes: 1 addition & 1 deletion utils_ver.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import requests

__version__ = "20221015-4-121"
__version__ = "20221015-4-131"
ver_re = re.compile("__version__ = .(\\d+-\\d+-...).")


Expand Down

0 comments on commit 44b456f

Please sign in to comment.