mirror of
https://github.com/haiwen/seafile-server-installer-cn
synced 2024-09-20 08:15:28 +00:00
Merge pull request #59 from haiwen/fix-firewalld-reload
Fix script exit caused by firewalld not running under CentOS7.
This commit is contained in:
commit
3ab63f30e7
|
@ -1,3 +1,3 @@
|
|||
ccnet-db
|
||||
seafile-db
|
||||
seahub-db
|
||||
ccnet_db
|
||||
seafile_db
|
||||
seahub_db
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
seahub-db.avatar_uploaded
|
||||
seahub-db.avatar_avatar
|
||||
seahub-db.avatar_groupavatar
|
||||
seahub-db.Event
|
||||
seahub-db.FileAudit
|
||||
seahub-db.FileUpdate
|
||||
seahub-db.PermAudit
|
||||
seahub-db.UserEvent
|
||||
seahub-db.UserTrafficStat
|
||||
seahub-db.VirusFile
|
||||
seahub-db.VirusScanRecord
|
||||
seahub_db.avatar_uploaded
|
||||
seahub_db.avatar_avatar
|
||||
seahub_db.avatar_groupavatar
|
||||
seahub_db.Event
|
||||
seahub_db.FileAudit
|
||||
seahub_db.FileUpdate
|
||||
seahub_db.PermAudit
|
||||
seahub_db.UserEvent
|
||||
seahub_db.UserTrafficStat
|
||||
seahub_db.VirusFile
|
||||
seahub_db.VirusScanRecord
|
||||
|
|
|
@ -151,8 +151,9 @@ sed -i 's/^SELINUX=.*/SELINUX=permissive/' /etc/selinux/config
|
|||
# -------------------------------------------
|
||||
yum install firewalld fail2ban -y
|
||||
# https://www.optimox.de/tutorials/linux-allgemein/centos-firewall-konfigurieren-mit-firewalld
|
||||
for i in ssh http https ; do firewall-cmd --zone=public --add-service=${i} --permanent ; done
|
||||
firewall-cmd --reload
|
||||
systemctl status firewalld &> /dev/null \
|
||||
&& for i in ssh http https ; do firewall-cmd --zone=public --add-service=${i} --permanent ; done \
|
||||
&& firewall-cmd --reload
|
||||
|
||||
# -------------------------------------------
|
||||
# Additional requirements
|
||||
|
|
Loading…
Reference in New Issue
Block a user