Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
ffed1264
"git@web.lueluesay.top:root/oh-my-zsh.git" did not exist on "46ddd88fe056ee84064536ce9b34f86bba6b53ca"
Commit
ffed1264
authored
Jun 27, 2014
by
Igor Pečovnik
Browse files
clearing hardencoded ip
parent
da90b498
Changes
1
Hide whitespace changes
Inline
Side-by-side
install.sh
View file @
ffed1264
...
...
@@ -106,8 +106,8 @@ install_cups (){
apt-get
-y
install
cups lpr foomatic-filters
sed
-e
's/Listen localhost:631/Listen 631/g'
-i
/etc/cups/cupsd.conf
sed
-e
's/<Location \/>/<Location \/>\nallow $SUBNET/g'
-i
/etc/cups/cupsd.conf
sed
-e
's/<Location \/admin>/<Location \/admin>\nallow
172.16.100.
/g'
-i
/etc/cups/cupsd.conf
sed
-e
's/<Location \/admin\/conf>/<Location \/admin\/conf>\nallow
172.16.100.
/g'
-i
/etc/cups/cupsd.conf
sed
-e
's/<Location \/admin>/<Location \/admin>\nallow
$SUBNET
/g'
-i
/etc/cups/cupsd.conf
sed
-e
's/<Location \/admin\/conf>/<Location \/admin\/conf>\nallow
$SUBNET
/g'
-i
/etc/cups/cupsd.conf
service cups restart
service samba restart
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment