about summary refs log tree commit diff stats
path: root/js/map-maker/imgs/extracted-1688-map/MapParts/trees/8.png
blob: 5c896402c4cf639c5142ad90d6db45dd8b4a1cac (plain)
ofshex dumpascii
0000 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 00 15 00 00 00 16 08 06 00 00 00 2f 83 d7 .PNG........IHDR............./..
0020 38 00 00 01 ad 49 44 41 54 78 da ad d4 4f 28 44 51 14 c7 f1 f1 a7 fc 5b 0c 4a 56 14 b2 c0 c6 46 8....IDATx...O(DQ......[.JV....F
0040 14 29 4a c9 42 23 36 4a 89 ac 94 4c a2 a4 44 4a ca ca 46 44 6c 6c 88 05 11 11 25 32 11 91 44 0a .)J.B#6J...L..DJ..FDll....%2..D.
0060 b1 10 92 28 0d f9 9f ef ad df 62 d2 34 66 a6 77 eb 53 ef be 37 9d 39 f7 dc 73 af cd e6 7b c4 a0 ...(......b.4f.w.S..7.9..s...{..
0080 1c 75 c8 b4 59 34 4c c0 67 7c 63 11 76 2b 82 36 e2 53 41 4d f0 55 44 5b 91 e9 0b ee 70 81 3d 24 .u..Y4L.g|c.v+.6.SAM.UD[....p.=$
00a0 05 1b 2c 19 29 c8 c7 01 b6 c5 85 bc 60 83 ee 62 0e d5 e8 c2 0a ee f1 8e 5e 44 06 13 d4 21 59 28 ..,.).......`..b........^D...!Y(
00c0 53 86 a6 0c b7 b8 d1 b7 a0 46 08 e2 d0 a0 a5 5f 63 5f 19 4f 06 12 28 0d 05 1e 73 d3 42 4b d8 12 S........F....._c_.O..(...s.BK..
00e0 93 f1 06 1e f1 84 be ff 02 d6 6b 87 af 10 a1 77 05 5a f6 39 2e f1 a5 f9 87 ea 7b 84 58 5f 41 4d ..........k....w.Z.9......{.X_AM
0100 ed c6 d0 a2 79 a8 de d5 62 42 41 5f d1 a4 77 cd ea 63 9f c3 34 75 aa c7 3c 01 a5 7a ee 53 2d cd ....y...bBA_..w..c..4u..<..z.S-.
0120 26 c5 7b fc 26 2a d0 8d 32 67 bd 44 cf f3 f8 c1 03 b2 ff fc ce fc 49 a2 56 f6 6f d6 3d 38 c5 8c &.{.&*..2g.D..........I.V.o.=8..
0140 0e c0 09 36 65 4d a5 aa 50 db f9 d5 b7 b9 da f5 37 1c eb 30 2c 63 5a 65 70 e3 10 ad 3a 20 0e ad ...6eM..P.......7..0,cZep...:...
0160 ca ae 56 f4 3a ba 95 9d e9 86 29 2d df 04 1c c2 8e da 6b 1c 35 68 c3 a8 be e7 7a cb ba 58 59 b9 ..V.:.....)-......k.5h....z..XY.
0180 95 e1 08 3a 30 8c 41 75 86 d1 09 27 72 54 63 9f 97 4c b8 6e 26 a7 fa b6 52 4b 5c 50 e6 2e 3d af ...:0.Au...'rTc..L.n&...RK\P..=.
01a0 eb 7e 35 ed 55 e4 6f 17 14 7a f4 e2 80 36 e7 4c d9 9b da ce aa 14 55 48 f7 b7 9d fa b5 db e7 ca .~5.U.o..z...6.L......UH........
01c0 6c 46 25 68 57 a0 0c 84 05 da a3 51 56 dc f0 96 8e 5f 5d d9 6f 63 58 6c 29 42 00 00 00 00 49 45 lF%hW......QV...._].ocXl)B....IE
01e0 4e 44 ae 42 60 82 ND.B`.
Generic.Prompt */ .highlight .gs { font-weight: bold } /* Generic.Strong */ .highlight .gu { color: #666666 } /* Generic.Subheading */ .highlight .gt { color: #aa0000 } /* Generic.Traceback */ .highlight .kc { color: #008800; font-weight: bold } /* Keyword.Constant */ .highlight .kd { color: #008800; font-weight: bold } /* Keyword.Declaration */ .highlight .kn { color: #008800; font-weight: bold } /* Keyword.Namespace */ .highlight .kp { color: #008800 } /* Keyword.Pseudo */ .highlight .kr { color: #008800; font-weight: bold } /* Keyword.Reserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/bin/sh

# First we define the function
ConfirmOrExit ()
{
    while true
    do
        echo -n "Please confirm (y or n) :"
        read CONFIRM
        case $CONFIRM in
            y|Y|YES|yes|Yes) break ;;
            n|N|no|NO|No)
                echo "Aborting - you entered $CONFIRM"
                exit
                ;;
            *) echo "Please enter only y or n"
        esac
    done
    echo "You entered $CONFIRM. Continuing ..."
}


# Absolute path to this script, e.g. /home/user/bin/foo.sh
SCRIPT=$(readlink -f "$0")
# Absolute path this script is in, thus /home/user/bin
SCRIPTPATH=$(dirname "$SCRIPT")

DIR=$(dirname "$SCRIPTPATH");
DIR_CONF=$DIR"/conf"

echo "SCRIPT=$SCRIPT";
echo "SCRIPTPATH=$SCRIPTPATH";
echo "DIR=$DIR";
echo "DIR_CONF=$DIR_CONF";
ConfirmOrExit

IS_INSTALL=$(prt-get isinst postgresql);
echo $IS_INSTALL;
if [ "$IS_INSTALL" = "package postgresql is installed" ]
then
    echo "updating postgresql"
    OLD_VERSION=$(prt-get current postgresql);
    echo $OLD_VERSION;

    sudo -u postgres pg_dumpall > /srv/pgsql/dump-$OLD_VERSION.sql

    sh /etc/rc.d/postgresql stop

    #extra backup, in case ...
    tar --xattrs -zcpf /srv/pgsql/data-$OLD_VERSION.tar.gz \
                    --directory=/srv/pgsql/data .

    rm -R /srv/pgsql/data

    prt-get update postgresql

    NEW_VERSION=$(prt-get current postgresql);
    echo $NEW_VERSION;

    sudo -u postgres initdb -D /srv/pgsql/data

    rejmerge
    #installer overwrite system init script
    cp -R $DIR_CONF/etc/rc.d/postgresql /etc/rc.d/

    sh /etc/rc.d/postgresql start
    sleep 5

    sudo -u postgres psql -d postgres -f /srv/pgsql/dump-$OLD_VERSION.sql

else
    echo "install postgresql and dependencies"
    prt-get depinst postgresql

    cp -R $DIR_CONF/etc/rc.d/postgresql /etc/rc.d/

    mkdir /srv/pgsql/
    touch /var/log/postgresql
    chown postgres:postgres /srv/pgsql /var/log/postgresql

    sudo -u postgres initdb -D /srv/pgsql/data

    cp $DIR_CONF/srv/pgsql/data/pg_hba.conf /srv/pgsql/data/
    chown postgres:postgres /srv/pgsql/data/pg_hba.conf
fi

exit 0;