diff -Nur --no-dereference smeserver-webshare-1.0.0.old/createlinks smeserver-webshare-1.0.0/createlinks --- smeserver-webshare-1.0.0.old/createlinks 2002-05-05 22:44:40.000000000 -0400 +++ smeserver-webshare-1.0.0/createlinks 2022-08-01 23:57:14.361000000 -0400 @@ -2,20 +2,25 @@ # This script creates the symlinks needed by this RPM # Specific support exists to create symlinks within e-smith web "panels" # and for links from named "events" directories into the "actions" directory - -sub panel_link -{ - my ($function, $panel) = @_; - - unlink "root/etc/e-smith/web/panels/$panel/cgi-bin/$function"; - symlink("../../../functions/$function", - "root/etc/e-smith/web/panels/$panel/cgi-bin/$function") - or die "Can't symlink to root/etc/e-smith/web/panels/$panel". - "/cgi-bin/$function: $!"; -} +use esmith::Build::CreateLinks qw(:all); #-------------------------------------------------- # functions for user and manager panel #-------------------------------------------------- my $panel = "manager"; panel_link("webshare", $panel); + +my $event = "smeserver-webshare-update"; +event_templates($event, qw( +/etc/httpd/conf/httpd.conf +)); + +event_services($event, qw( + php-fpm restart + httpd-e-smith restart +)); + +use esmith::Build::Backup qw(:all); +backup_includes("smeserver-webshare", qw( +/opt/webshare +)); diff -Nur --no-dereference smeserver-webshare-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias smeserver-webshare-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias --- smeserver-webshare-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias 2022-08-01 23:41:07.957000000 -0400 +++ smeserver-webshare-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias 2022-08-01 23:43:13.776000000 -0400 @@ -27,8 +27,9 @@ $OUT .= " AuthUserFile \/home\/e-smith\/db\/webshare\/htpasswd.$key\n"; $OUT .= " Require valid-user\n"; $OUT .= " AddType application\/x-httpd-php \.php \.php3\n"; - $OUT .= " php_flag magic_quotes_gpc on\n"; - $OUT .= " php_flag track_vars on\n"; + $OUT .= " \n"; + $OUT .= ' SetHandler "proxy:unix:/var/run/php-fpm/php.sock|fcgi://localhost"'."\n"; + $OUT .= " \n"; $OUT .= "<\/Directory>\n"; $OUT .= "\n"; } diff -Nur --no-dereference smeserver-webshare-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule80AuthFile smeserver-webshare-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule80AuthFile --- smeserver-webshare-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule80AuthFile 2022-08-02 00:02:54.839000000 -0400 +++ smeserver-webshare-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule80AuthFile 1969-12-31 19:00:00.000000000 -0500 @@ -1,4 +0,0 @@ -{ - $OUT .= load_modules(qw(auth_basic)); - $OUT .= load_modules(qw(authn_file)); -} diff -Nur --no-dereference smeserver-webshare-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias smeserver-webshare-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias --- smeserver-webshare-1.0.0.old/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias 2022-08-02 00:02:54.856000000 -0400 +++ smeserver-webshare-1.0.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86WebShareAlias 2022-08-02 00:05:30.150000000 -0400 @@ -9,16 +9,7 @@ $OUT .= "# webshare\/$key\n"; $OUT .= "Alias \/webshare\/$key \/opt\/webshare\/$key\n"; $OUT .= "\n"; - { - use esmith::util; - my $release = esmith::util::determineRelease(); - if ( "$release" ge "7.0" ) { - $OUT .= " SSLRequireSSL\n"; - } - else { - $OUT .= " RequireSSL on\n"; - } - } + $OUT .= " SSLRequireSSL\n"; $OUT .= " Options +Indexes\n"; $OUT .= " AllowOverride None\n"; $OUT .= " Require all granted\n";