-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjls_Syyua.sh
66 lines (49 loc) · 1004 Bytes
/
jls_Syyua.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh
#tommi 25.10.2015
#jls_Syyua.sh version 0,1
#This script should be run from the jail host
# script updates the jail (freebsd-update fetch and install)
#
# todo take a parameter
#asenna paketti X ( tunnista $2 parametrilla ) jailiin Y ( $1 )
# $0 on itse scriptin nimi eli nyt jls_Syyua,sh
# iocage exec $1 pkg install $2
#update / upgrade paketit
#-pkg
# iocage exec ALL pkg update
# iocage exec ALL pkg upgrade
#update paketti
#-portmaster
echo 'Syyua implementation for jails'
if [ -e "/usr/sbin/pkg" ]
then
echo'found pkg'
else
pkg
fi
iocage exec ALL pkg update
iocage exec ALL pkg upgrade
#if [ -e "/var/db/portsnap/INDEX" ]
#then
# echo'ports extracted'
#else
# portsnap fetch extract
#fi
#
#if [ -e "/usr/local/sbin/portmaster" ]
#then
# echo'portmaster installed'
#else
# pkg install portmaster
#fi
# echo 'FreeBSD'
# freebsd-update fetch
# freebsd-update install
#
# pkg update
# pkg upgrade
#
# portsnap fetch update
# portmaster -L | grep New
#
echo 'Done'