|
The Maia Installscript
|
| Author |
Message |
joximu
Moderator
    
Posts: 3,534
Group: Moderators
Joined: Jan 2007
Status:
Offline
Reputation: 47
|
RE: The Maia Installscript
2008-03-16 ispCP RC4 released!!!
|
|
| 10-19-2007 09:40 PM |
|
 |
BeNe
Moderator
    
Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status:
Offline
Reputation: 35
|
|
| 10-19-2007 11:12 PM |
|
 |
BeNe
Moderator
    
Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status:
Offline
Reputation: 35
|
|
| 10-20-2007 12:09 AM |
|
 |
joximu
Moderator
    
Posts: 3,534
Group: Moderators
Joined: Jan 2007
Status:
Offline
Reputation: 47
|
RE: The Maia Installscript
I can do some questions about database users and so on - so we can use the variables in the script...
/J
2008-03-16 ispCP RC4 released!!!
|
|
| 10-20-2007 12:49 AM |
|
 |
ephigenie
Administrator
      
Posts: 570
Group: Administrators
Joined: Oct 2006
Status:
Offline
Reputation: 9
|
RE: The Maia Installscript
I made the submission (askimet is only noob if you're unregistered in the trac ... )
FYI i changed that
|
|
| 10-20-2007 01:03 AM |
|
 |
joximu
Moderator
    
Posts: 3,534
Group: Moderators
Joined: Jan 2007
Status:
Offline
Reputation: 47
|
RE: The Maia Installscript
@BeNE:
what do you think, can we go this way:
echo "We ask some details about MySQL and the maia user"
ok=0
while [ "$ok" = "0" ]; do
read -ep "Do you want this script to create the maia user in MySQL? [y/n] " crDbMaUser
for a in Y y; do
if [ "$crDbMaUser" = "$a" ]; then crDbMaUser=y; ok=1; fi
done
for a in N n; do
if [ "$crDbMaUser" = "$a" ]; then crDbMaUser=n; ok=1; fi
done
done
# ask the MySQL root user
if [ "$crDbMaUser" = "y" ]
then
ok=0
while [ "$ok" = "0" ]; do
read -ep "Username of a mysql root user?, eg. 'root': " dbRtUser
read -ep "Password for this user?: " dbRtPass
read -ep "again... to be sure... : " dbRtPass2
if [ "$dbRtPass" = "$dbRtPass2" ]; then ok=1; fi
done
fi
# ask the MySQL maia user
ok=0
while [ "$ok" = "0" ]; do
read -ep "Username of the mysql maia user?, eg. 'maia' or 'ispcp-maia': " dbMaUser
read -ep "Password for this user?: " dbMaPass
read -ep "again... to be sure... : " dbMaPass2
if [ "$dbMaPass" = "$dbMaPass2" ]; then ok=1; fi
done
I think it's a good start, we then have all database infos in variables... (and can send them to our headquater - hehe :-)
I'm continuing on this...
/J
2008-03-16 ispCP RC4 released!!!
|
|
| 10-20-2007 01:07 AM |
|
 |
raphael
Member
   
Posts: 474
Group: Dev Team
Joined: Apr 2007
Status:
Offline
Reputation: 8
|
RE: The Maia Installscript
HERE WE SHOULD REMOVE THE "#" IN FRONT OF content_filter = amavis:[127.0.0.1]:10024 in main.cf
# BUT HOW TO DO THIS THE BEST WAY ?
sed -i "s/#[ \t]*content_filter/content_filter" /path/to/file
YaHost Me | Text Link Ads | my Debian repository | Donate! | No OOXML! | Project HoneyPot | ... and more
This is Linux land. In silent nights you can hear the Windows machines rebooting.
If you want to be helped, don't PM me but post in the forums | If you want private support PM me and we'll discuss the price
|
|
| 10-20-2007 05:45 AM |
|
 |
joximu
Moderator
    
Posts: 3,534
Group: Moderators
Joined: Jan 2007
Status:
Offline
Reputation: 47
|
RE: The Maia Installscript
HERE WE SHOULD REMOVE THE "#" IN FRONT OF content_filter = amavis:[127.0.0.1]:10024 in main.cf
# BUT HOW TO DO THIS THE BEST WAY ?
sed -i "s/#[ \t]*content_filter/content_filter" /path/to/file
Since we change the main.cf and we don't know if the user has many lines with #content_filter... (and not always with 10024) I think it's better to check the whole line - the sample above was a start - there is much more in the wiki...
2008-03-16 ispCP RC4 released!!!
|
|
| 10-20-2007 08:13 AM |
|
 |
BeNe
Moderator
    
Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status:
Offline
Reputation: 35
|
RE: The Maia Installscript
@BeNE:
what do you think, can we go this way:
Yes, this looks good.
Since we change the main.cf and we don't know if the user has many lines with #content_filter... (and not always with 10024) I think it's better to check the whole line - the sample above was a start - there is much more in the wiki...
I am with you...so we have for sure the right line
Thanks @raphael for take a look at it.
Greez BeNe

:: ispCP Omega RC5 Live Demo - r1267 (19.05.08) --> http://www.isp-control.net/forum/ispcp-o...ml#pid2169 <--
|
|
| 10-21-2007 01:25 AM |
|
 |
BeNe
Moderator
    
Posts: 2,557
Group: Moderators
Joined: Jan 2007
Status:
Offline
Reputation: 35
|
|
| 10-21-2007 04:57 AM |
|
 |
|
|