Skip to content

Commit aac6960

Browse files
committed
update typecho
1 parent 2cf29f4 commit aac6960

File tree

1,443 files changed

+38674
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,443 files changed

+38674
-7
lines changed

update.list

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
./web-framework/nodejs/hapi
22
./web-framework/php/whatsns
33
./web-framework/php/zblog
4-
./web-framework/php/metinfo
4+
./web-framework/php/metinfo
5+
./web-framework/php/discuz
6+
./web-framework/php/ecshop

web-framework/php/discuz/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: start-discuz
33
Provider:
44
- 阿里云
5-
Version: 0.1.0
5+
Version: 0.1.1
66
Description: 快速部署一个 Discuz 框架到阿里云函数计算
77
HomePage: https://github.com/devsapp/start-web-framework
88
Tags:
Binary file not shown.
34 KB
Binary file not shown.
Binary file not shown.
90 KB
Binary file not shown.
90 KB
Binary file not shown.
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# -*-Shell-script-*-
2+
# /lib/lsb/init-functions
3+
4+
_use_systemctl=0
5+
if [ -d /run/systemd/system ]; then
6+
7+
prog=${0##*/}
8+
service="${prog%.sh}.service"
9+
10+
# Don't try to run masked services. systemctl <= 230 always succeeds here,
11+
# but later systemctls fail on nonexisting units; be compatible with both
12+
state=$(systemctl -p LoadState --value show $service 2>/dev/null) || state="not-found"
13+
[ "$state" = "masked" ] && exit 0
14+
15+
# Redirect SysV init scripts when executed by the user
16+
if [ $PPID -ne 1 ] && [ -z "${SYSTEMCTL_SKIP_REDIRECT:-}" ]; then
17+
case $(readlink -f "$0") in
18+
/etc/init.d/*)
19+
# If the state is not-found, this might be a newly installed SysV init
20+
# script where systemd-sysv-generator has not been run yet.
21+
[ "$state" != "not-found" ] || [ "$(id -u)" != 0 ] || systemctl --no-ask-password daemon-reload
22+
23+
_use_systemctl=1
24+
# Some services can't reload through the .service file,
25+
# but can through the init script.
26+
if [ "$(systemctl -p CanReload --value show $service 2>/dev/null)" = "no" ] && [ "${1:-}" = "reload" ]; then
27+
_use_systemctl=0
28+
fi
29+
;;
30+
esac
31+
fi
32+
fi
33+
34+
systemctl_redirect () {
35+
local s
36+
local rc
37+
local prog=${1##*/}
38+
local command=$2
39+
40+
case "$command" in
41+
start)
42+
s="Starting $prog (via systemctl)"
43+
;;
44+
stop)
45+
s="Stopping $prog (via systemctl)"
46+
;;
47+
reload|force-reload)
48+
s="Reloading $prog configuration (via systemctl)"
49+
;;
50+
try-restart)
51+
s="Restarting $prog if running (via systemctl)"
52+
;;
53+
restart)
54+
s="Restarting $prog (via systemctl)"
55+
;;
56+
esac
57+
58+
service="${prog%.sh}.service"
59+
60+
# avoid deadlocks during bootup and shutdown from units/hooks
61+
# which call "invoke-rc.d service reload" and similar, since
62+
# the synchronous wait plus systemd's normal behaviour of
63+
# transactionally processing all dependencies first easily
64+
# causes dependency loops
65+
if ! OUT=$(systemctl is-system-running 2>/dev/null) && [ "$OUT" != "degraded" ]; then
66+
sctl_args="--job-mode=ignore-dependencies"
67+
fi
68+
69+
[ "$command" = status ] || log_daemon_msg "$s" "$service"
70+
/bin/systemctl --no-pager $sctl_args $command "$service"
71+
rc=$?
72+
[ "$command" = status ] || log_end_msg $rc
73+
74+
return $rc
75+
}
76+
77+
if [ "$_use_systemctl" = "1" ]; then
78+
# Some init scripts use "set -e" and "set -u", we don't want that
79+
# here
80+
set +e
81+
set +u
82+
83+
if [ "x$1" = xstart -o \
84+
"x$1" = xstop -o \
85+
"x$1" = xrestart -o \
86+
"x$1" = xreload -o \
87+
"x$1" = xforce-reload -o \
88+
"x$1" = xtry-restart -o \
89+
"x$1" = xstatus ] ; then
90+
91+
systemctl_redirect $0 $1
92+
exit $?
93+
fi
94+
fi
Binary file not shown.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This file is part of systemd.
2+
#
3+
# systemd is free software; you can redistribute it and/or modify it
4+
# under the terms of the GNU Lesser General Public License as published by
5+
# the Free Software Foundation; either version 2.1 of the License, or
6+
# (at your option) any later version.
7+
8+
# This network file matches the container-side of the virtual Ethernet link
9+
# created by systemd-nspawn's --network-veth switch. See systemd-nspawn(1) for
10+
# details.
11+
12+
[Match]
13+
Virtualization=container
14+
Name=host0
15+
16+
[Network]
17+
DHCP=yes
18+
LinkLocalAddressing=yes
19+
LLDP=yes
20+
EmitLLDP=customer-bridge
21+
22+
[DHCP]
23+
UseTimezone=yes

0 commit comments

Comments
 (0)