Your IP : 216.73.216.21


Current Path : /pkg/zweb/1.0/bin/
Upload File :
Current File : //pkg/zweb/1.0/bin/.zweb-delete.un~

Vim�UnDo�*|C~���?1ФC��*W{��f�H���85>�O	if [ -d $dirname ]; thenG
����[+��4_�����[+v�5�_�����[+v�web=$15�_�����[+v�user=$15�_�����[+v��5�_�����[+v+��5�_�����[+v@��5�_�����[+v���5�_�	����[+v��	5�_�
	
����[+v��tar cjf /srv/backup/$account5�_�	
	����[+v��	cd $base5�_�

����[+v��
�
5�_�
����[+v��

5�_�
	����[+v��	5�_�
����[+v��
�
5�_�����[+v��if [ -d $base/$account ]; then5�_�����[+v��	5�_�����[+v��	5�_� ����[+v��
    �
5�_�����[+v��cd $base5�_�����[+v��cd $base/$account5�_�
����[+v��
�
5�_�����[+v��
5�_�����[+v��5�_�����[+v���5�_�	����[+w�if [ $? -eq 0 ]; then5�_�
����[+w�5�_�����[+w
�5�_�����[+w��5�_�����[+w.�5�_�����[+w4�if [ ! -d /etc/nginx5�_� ����[+w?�5�_�! ����[+w@�5�_� "!����[+wK�	!    echo "error: no such account"5�_�!#"����[+wK�	    echo "error: such account"5�_�"$#����[+wL�	    echo "error: account"5�_�#%$����[+wU�    echo "error:5�_�$&%����[+wj�"�5�_�%'& ����[+w�� "#	� ""5�_�&('!����[+w�� !	i5�_�')(!����[+w�� ""5�_�(*)!����[+w�� ##5�_�)+*!����[+w��!#$5�_�*,+"����[+w��!#%5�_�+-,"����[+x
�"$&	�"$%5�_�,.-%����[+x�%('�%'&5�_�-/. ����[+x,�")�!(5�_�.0/����[+xJ�+if [ ! -d /etc/nginx/hosts/$account ]; then5�_�/10����[+xJ�3    echo "error: /etc/nginx/hosts/$account missing"5�_�021����[+xK�
    exit 15�_�132����[+xK�fi5�_�243����[+xK�5�_�354����[+xn�cd $base/$accounttimestamp=$(date +%Y%m%d-%H%M),[[ -d /srv/backup ]] || mkdir -p /srv/backup/tar cjf /srv/backup/$account-$timestamp.tar.bz2if [ $? -ne 0 ]; then     echo "error: archive failed"
    exit 1fi5�_�465����[+xo��5�_�576����[+xr�&�%5�_�687'����[+x�	�'�'5�_�798+����[+x��*,-�*,,5�_�8:9,
����[+x��,.-5�_�9;:-����[+x��,..5�_�:<;-����[+x��-/.5�_�;=<-����[+x��,0/    cd $this_dir5�_�<>=.����[+x��-/1    if [ -L $i ]; then5�_�=?>.	����[+x��.015�_�>@?/����[+x��.025�_�?A@/(����[+y�.027        echo "warn: service $account-$i not supervised"5�_�@BA/.����[+y
�.02:        echo "warn: service $account-$i is not supervised"5�_�ACB1����[+y&�015�_�BDC/����[+y)�/12	�/115�_�CED1����[+y-�133    �1325�_�DFE2����[+y5�133	    cd $i5�_�EGF.����[+y;�-/3    if [ ! -L $i ]; then5�_�FHG2����[+yA�2435�_�GIH2����[+yI�145    �1345�_�HJI2����[+yc�2465�_�IKJ3����[+ye�2475�_�JLK3C����[+y��358	�3575�_�KML3����[+y��249	    �2485�_�LNM+����[+y��*-:�*,95�_�MON+����[+y��*,;error-05�_�NPO5����[+y�
�46;	    error=15�_�OQP5����[+y��45	error=15�_�PRQ+����[+y��*+error=05�_�QSR7����[+y��6985�_�RTS/(����[+y��.09@        echo "warn: service $account-$i is not being supervised"5�_�SUT/,����[+y��.09=        echo "warn: service $account-$i not being supervised"5�_�TVU3)����[+y��249D        echo "error: service $account-$i is linked to a missing dir"5�_�UWV33����[+y��249A        echo "error: service $account-$i linked to a missing dir"5�_�VXW,
����[+zQ�+-95�_�WYX+����[+zT�*+this_dir=$(pwd)5�_�XZY+����[+zT�*+5�_�Y[Z(����[+z]�'+9�')85�_�Z\[)����[+zp�)+;5�_�[]\*����[+zq�)+<5�_�\^]&����[+zz�%&
    exit 15�_�]_^%����[+z�$&;     echo "error: archive failed"5�_�^`_)
����[+z��(*;    echo "error:5�_�_a`)����[+z��(*;    echo "warn:5�_�`ba(����[+z��');if [ ! -d .svc ]; then5�_�acb(����[+z��');if [  -d .svc ]; then5�_�bdc(����[+z��(*<	�(*;5�_�ced-����-[+z��,-cd .svcfor i in *; do    cd /svc!    if [ ! -L $account-$i ]; then7        echo "warn: service $account-$i not supervised"		continue    fi-    if [ ! -d $(readlink $account-$i) ]; then?        echo "error: service $account-$i linked to missing dir"		continue    fi    cd $account-$i    /cmd/svc -dx .    rm /cmd/svcdone5�_�dfe(����[+z��(9,�(),5�_�egf)����[+z��(*<cd .svc5�_�fhg+����[+z��*,<for i in *; do5�_�gih,����[+z��+-<    cd /svc5�_�hji-����[+z��,.<!    if [ ! -L $account-$i ]; then5�_�ikj.����[+z��-/<7        echo "warn: service $account-$i not supervised"5�_�jlk/����[+z��.0<		continue5�_�kml0����[+z��/1<    fi5�_�lnm1����[+z��02<-    if [ ! -d $(readlink $account-$i) ]; then5�_�mon2����[+z��13<?        echo "error: service $account-$i linked to missing dir"5�_�npo3����[+z��24<		continue5�_�oqp4����[+z��35<    fi5�_�prq5����[+z��46<    cd $account-$i5�_�qsr6����[+z��57<    /cmd/svc -dx .5�_�rts7����[+z��68<    rm /cmd/svc5�_�sut8����[+z��79<done5�_�tvu����[+z��error=05�_�uwv����[+z��5�_�vxw����[+z��        error=15�_�wyx����[+z��[[ $error -eq 1 ]] && exit 15�_�xzy����[+z��7for i in hosts panel; do5�_�y{z����[+���8	�75�_�z|{����[+���8else5�_�{}|����[+���
9�
85�_�|~}����[+���95�_�}~����[+���:5�_�~�!����[+���:*        to_archive="$to_archive /etc/nginx5�_���)����[+���:)        to_archive="$to_archive etc/nginx5�_��������[+���:$# all files are there, begin removal5�_��������[+���: # files are there, begin removal5�_��������[+���:# are there, begin removal5�_��������[+���:# there, begin removal5�_��������[+���:# , begin removal5�_��������[+��
# begin removalcd $base/$accounttimestamp=$(date +%Y%m%d-%H%M),[[ -d /srv/backup ]] || mkdir -p /srv/backup/tar cjf /srv/backup/$account-$timestamp.tar.bz2if [ $? -ne 0 ]; then)    echo "error: archive creation failed"fi5�_�����-����[+��-�-5�_��������[+��5�_��������[+��:�95�_��������[+��cd5�_����/����[+�E�./cd $base/$account5�_��������[+�K�8�85�_��������[+�K�95�_��������[+�M�:5�_��������[+�O�;cd $base/$account5�_��������[+�O�;cd base/$account5�_��������[+�O�;cd ase/$account5�_��������[+�P�;cd se/$account5�_��������[+�P�;
cd e/$account5�_��������[+�Q�;cd /$account5�_��������[+�U�base='/srv/web'5�_��������[+�U�5�_��������[+�\�5�_����%����[+�k�$&9	�$&85�_����%����[+���$%2	to_archive="$to_archive srv/web/$account/.svc/$i"5�_����.����[+���.08�./85�_����/����[+���.092	to_archive="$to_archive srv/web/$account/.svc/$i"5�_�����	����[+���:�95�_��������[+���;cd /srv/web/$account5�_��������[+���;cd srv/web/$account5�_��������[+���;cd rv/web/$account5�_��������[+���;cd v/web/$account5�_��������[+���;cd /web/$account5�_��������[+���;cd web/$account5�_��������[+���;cd eb/$account5�_����1(����[+���02;1to_archive="$to_archive srv/web/$account/.svc/$i"5�_����1(����[+���02;0to_archive="$to_archive srv/web/$account.svc/$i"5�_����1(����[+���02;/to_archive="$to_archive srv/web/$accountsvc/$i"5�_����1(����[+���02;.to_archive="$to_archive srv/web/$accountvc/$i"5�_����1(����[+���02;-to_archive="$to_archive srv/web/$accountc/$i"5�_����1(����[+���02;,to_archive="$to_archive srv/web/$account/$i"5�_����1(����[+���02;+to_archive="$to_archive srv/web/$account$i"5�_����1(����[+���02;*to_archive="$to_archive srv/web/$accounti"5�_����'����[+���')<	�');5�_����(����[+��')<"	echo "info: removing $accoint-$i"5�_����( ����[+��')<'	echo "info: removing /svc/$accoint-$i"5�_����'����[+��&(<        cd $account-$i5�_����)����[+�*�(*<        /cmd/svc -dx .5�_����*����[+�+�)+<        rm /cmd/svc5�_����2����[+�1�25=�24<5�_����4����[+�=�46?�46>5�_��������[+�N�@	    �?5�_��������[+�U!�	    echo "info:5�_��������[+��#�?-	echo "error: /etc/nginx/$i/$account missing"5�_�����)����[+���(*?        #/cmd/svc -dx .5�_����*����[+��$�)+?        #rm /cmd/svc5�_����*����[+��)+?        rm /cmd/svc5�_����*����[+��)+?        rm //svc5�_����*����[+�
%�)+?        rm /svc5�_����5����[+�'�45exit5�_����8����[+�e�78,[[ -d /srv/backup ]] || mkdir -p /srv/backup5�_����8����[+�f�7:>�79=5�_����8����[+�t�79?if [ ! -d /srv/backup ]; then5�_����8(����[+�}�8:@	�8:?5�_����8����[+��8;A	�8:@5�_����9����[+���8:B"	echo "error: /srv/backup missing"5�_����:����[+���9;B	exit5�_����<����[+���;<5�_����=����[+���<>B�<>A5�_����>/����[+���=?B/tar cjf /srv/backup/$account-$timestamp.tar.bz25�_����>����[+���=?B;tar cjf /srv/backup/$account-$timestamp.tar.bz2 $to_archive5�_����>A����[+��(�=@BAecho "tar cjf /srv/backup/$account-$timestamp.tar.bz2 $to_archive5�_����=����[+��*�=?D�=?C5�_����?����[+���>@DBecho "tar cjf /srv/backup/$account-$timestamp.tar.bz2 $to_archive"5�_����?����[+���>@D="tar cjf /srv/backup/$account-$timestamp.tar.bz2 $to_archive"5�_����?;����[+���>@D<tar cjf /srv/backup/$account-$timestamp.tar.bz2 $to_archive"5�_����@����[+���?@exit5�_����>����[+���=>pwd5�_����>����[+���=?B5�_����A	����[+���@BCif [ $? -ne 0 ]; then5�_����A
����[+���ACD	�ACC5�_����A����[+���ACE	�ACD5�_����B����[+���ADE	5�_����B����[+��BDF5�_����C����[+��BEG5�_����D
����[+�B�CEH	echo "cd $dir_name"5�_����D
����[+�E�DFI	�DFH5�_����E����[+�R�DFI	echo "rm -rf /$dir_name"5�_����C����[+�U�CEI�CDI5�_����C����[+�Z�BDJ        dir_name=$(dirname $d)5�_����D����[+�e�CEJ        dir_name=$(dirname $d)5�_����E����[+�l+�DFJ	echo "cd /$dir_name"5�_����C����[+��,�BEK	    �BDJ5�_����B
����[+���ACL    for d in "$to_archive"; do5�_����B����[+��-�ACL    for d in $to_archive"; do5�_����C����[+��.�BC	    echo "d = $d"
	    continue5�_����E����[+���DFJ	echo "cd /$dir_root"5�_����E����[+���DFJ	cho "cd /$dir_root"5�_����E����[+���DFJ	ho "cd /$dir_root"5�_����E����[+���DFJ	o "cd /$dir_root"5�_����E����[+���DFJ	 "cd /$dir_root"5�_����E����[+���DFJ	"cd /$dir_root"5�_����E����[+���DFJ	cd /$dir_root"5�_����E
����[+���EGK	�EGJ5�_����F����[+���FHL	�FHK5�_����H����[+���HJM	�HJL5�_����I����[+���HJMfi5�_����H����[+���GIM	echo "rm -rf $dir_name"5�_����H����[+���HJN	    �HJM5�_����I����[+���HJN    elif [ -f $dirname ]; then5�_����I����[+��IKN�IJN5�_����J����[+�1�IKO	    echo "rm -rf $dir_name"5�_����G	����[+�K�FHO	if [ -d $dirname ]; then5�_����G	����[+�Q2�FHO	if [ -d /$dirname ]; then5�_����I����[+�d�HJO"        elif [ -f $dirname ]; then5�_����I����[+�f3�HJO    else5�_���G
����[+��4�FHO	if [ -d $dirname ]; then5�_����$����[+���#%?B            echo "warn: service $account-$i linked to missing dir"5�_�����
����[+���9if [ ! -d base/$account ]; then5�_����
����[+���9if [ ! -d ase/$account ]; then5�_����
����[+���9if [ ! -d se/$account ]; then5�_����
����[+���9if [ ! -d e/$account ]; then5�_����
����[+���9if [ ! -d /$account ]; then5�_���
����[+���9#if [ ! -d /srv/web/$account ]; then5�_��������[+��-�-
# begin removalcd $base/$accounttimestamp=$(date +%Y%m%d-%H%M),[[ -d /srv/backup ]] || mkdir -p /srv/backup/tar cjf /srv/backup/$account-$timestamp.tar.bz2if [ $? -ne 0 ]; then)    echo "error: archive creation failed"fi5��

https://nalibali.org/post-sitemap.xml 2026-11-20T09:00:00+00:00 https://nalibali.org/page-sitemap.xml 2026-11-18T09:24:11+00:00 https://nalibali.org/stories-sitemap.xml 2026-05-05T06:48:38+00:00 https://nalibali.org/stories-sitemap2.xml 2026-05-05T06:48:38+00:00 https://nalibali.org/audio_stories-sitemap.xml 2026-03-27T06:53:13+00:00 https://nalibali.org/story_cards-sitemap.xml 2025-06-06T10:27:48+00:00 https://nalibali.org/story_seeds-sitemap.xml 2025-05-19T07:35:43+00:00 https://nalibali.org/rhymes-sitemap.xml 2025-06-17T07:43:10+00:00 https://nalibali.org/activity_sheets-sitemap.xml 2025-05-16T09:16:43+00:00 https://nalibali.org/printables-sitemap.xml 2025-05-16T09:28:40+00:00 https://nalibali.org/posters_bookmarks-sitemap.xml 2025-05-16T10:20:22+00:00 https://nalibali.org/team_member-sitemap.xml 2025-05-28T09:40:43+00:00 https://nalibali.org/video_stories-sitemap.xml 2025-06-23T08:48:28+00:00 https://nalibali.org/guides-sitemap.xml 2025-06-17T09:38:41+00:00 https://nalibali.org/story_supplements-sitemap.xml 2025-09-16T12:22:20+00:00 https://nalibali.org/vacancies-sitemap.xml 2026-09-17T07:05:01+00:00 https://nalibali.org/category-sitemap.xml 2026-11-20T09:00:00+00:00 https://nalibali.org/post_tag-sitemap.xml 2026-11-06T00:00:00+00:00 https://nalibali.org/test-sitemap.xml 2025-06-13T09:36:28+00:00 https://nalibali.org/story_categories-sitemap.xml 2026-05-05T06:48:38+00:00 https://nalibali.org/activity_sheets_categories-sitemap.xml 2025-05-16T09:16:43+00:00 https://nalibali.org/printables_categories-sitemap.xml 2025-05-16T09:28:40+00:00 https://nalibali.org/posters_bookmarks_categories-sitemap.xml 2025-05-16T10:20:22+00:00 https://nalibali.org/single_audio-sitemap.xml 2026-03-27T06:53:13+00:00 https://nalibali.org/rhyme_categories-sitemap.xml 2025-06-17T07:43:10+00:00 https://nalibali.org/guide_categories-sitemap.xml 2025-06-17T09:38:41+00:00 https://nalibali.org/author-sitemap.xml 2026-01-22T07:26:07+00:00