0xGA: Check-in [b5764a4903]

Yet another PHP framework, but made for org-mode and geeks.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add update-chroot function to narv
Timelines: family | ancestors | descendants | both | narv
Files: files | file ages | folders
SHA1:b5764a49033bc7c2353db2d36f2d9bae2784c894
User & Date: milouse 2014-09-25 16:48:15
Context
2014-09-28
21:50
Fix bug preventing new articles to be correctly indexed check-in: a636875f4e user: milouse tags: narv
2014-09-25
16:48
Add update-chroot function to narv check-in: b5764a4903 user: milouse tags: narv
2014-09-24
16:04
Update home doc check-in: 50907e3740 user: milouse tags: narv
Changes

Changes to narv.

180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
...
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
...
524
525
526
527
528
529
530























531
532
533
534
535
536
537
538
539
540
541
            done
        done
    done

    # We need this lib from threading too
    cp -R -L /usr/lib/libgcc_s.so.1 $WORKINGREP/usr/lib/

    # Creating /dev/null
    install -dm 755 $WORKINGREP/dev
    mknod $WORKINGREP/dev/null c 1 3

    # Creating urandom
    mknod -m 0444 $WORKINGREP/dev/random c 1 8
    mknod -m 0444 $WORKINGREP/dev/urandom c 1 9

    copy_passwd_files
    chmod -R 777 var

    # Creating /bin for compatibility. Link MUST be local
    if [ ! -e "$WORKINGREP/bin" ] ; then
        cd $WORKINGREP
        ln -s usr/bin
................................................................................
                shift
                FOSSILFILE=`realpath $1`
                ;;
            --host|-H)
                shift
                DOMAINNAME=$1
                ;;
            create|init-chroot|poke|restart|start|stop|-h|'help')
                COMMAND=$1
                ;;
            *)
                APPNAME=$1
                ;;
        esac
        shift
................................................................................
    stop)
        narv_stop
        ;;
    restart)
        narv_restart
        ;;
    init-chroot)























        init_chroot
        ;;
    poke)
        pkill -10 -f $APPNAME.py
        ;;
    *)
        echo "There's something strange
in your neighborhood.
Who ya gonna call?"
        ;;
esac







<
<
<
<
<
<
<
<







 







|







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>











180
181
182
183
184
185
186








187
188
189
190
191
192
193
...
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
...
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
            done
        done
    done

    # We need this lib from threading too
    cp -R -L /usr/lib/libgcc_s.so.1 $WORKINGREP/usr/lib/









    copy_passwd_files
    chmod -R 777 var

    # Creating /bin for compatibility. Link MUST be local
    if [ ! -e "$WORKINGREP/bin" ] ; then
        cd $WORKINGREP
        ln -s usr/bin
................................................................................
                shift
                FOSSILFILE=`realpath $1`
                ;;
            --host|-H)
                shift
                DOMAINNAME=$1
                ;;
            create|init-chroot|update-chroot|poke|restart|start|stop|-h|'help')
                COMMAND=$1
                ;;
            *)
                APPNAME=$1
                ;;
        esac
        shift
................................................................................
    stop)
        narv_stop
        ;;
    restart)
        narv_restart
        ;;
    init-chroot)
        init_chroot

        echo ":: Creating false dev mount points"
        # Creating /dev/null
        install -dm 755 $WORKINGREP/dev
        mknod $WORKINGREP/dev/null c 1 3

        # Creating urandom
        mknod -m 0444 $WORKINGREP/dev/random c 1 8
        mknod -m 0444 $WORKINGREP/dev/urandom c 1 9
        ;;
    update-chroot)
        echo ":: Deleting old chroot files"
        find $WORKINGREP/usr ! -name milouse\.py -a ! -name narv -a ! -name narv\.py -delete
        find $WORKINGREP/etc ! -name rc\.conf -a ! -name routes\.conf -delete
        if [ -d "$WORKINGREP/lib64" ]; then
          rm -r $WORKINGREP/lib64
        fi
        if [ -d "$WORKINGREP/usr/bin/__pycache__" ]; then
          rm -r $WORKINGREP/usr/bin/__pycache__/
        fi
        rm $WORKINGREP/bin

        init_chroot
        ;;
    poke)
        pkill -10 -f $APPNAME.py
        ;;
    *)
        echo "There's something strange
in your neighborhood.
Who ya gonna call?"
        ;;
esac