generated from smedev/Template-for-SMEServer-Core-Package
initial
This commit is contained in:
27
root/etc/cron.daily/smeserver-update
Normal file
27
root/etc/cron.daily/smeserver-update
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
#----------------------------------------------------------------------
|
||||
# smeserver-update daily tasks
|
||||
# Copyright (C) 2024 Koozali Foundation, Inc.
|
||||
# Copyright (C) 2005 Gordon Rowell <gordonr@gormand.com.au>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License or more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#----------------------------------------------------------------------
|
||||
|
||||
dnf_status=$(/sbin/e-smith/db configuration getprop dnf status|| echo "disabled")
|
||||
|
||||
[ $dnf_status = 'enabled' ] || exit 0
|
||||
|
||||
/usr/bin/systemctl restart dnf.service
|
||||
|
3
root/etc/dnf/plugins/smeserver.conf
Normal file
3
root/etc/dnf/plugins/smeserver.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
[main]
|
||||
enabled=1
|
||||
|
@@ -0,0 +1 @@
|
||||
disabled
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
disabled
|
@@ -0,0 +1 @@
|
||||
no
|
1
root/etc/e-smith/db/configuration/defaults/dnf/GPGCheck
Normal file
1
root/etc/e-smith/db/configuration/defaults/dnf/GPGCheck
Normal file
@@ -0,0 +1 @@
|
||||
0
|
@@ -0,0 +1 @@
|
||||
disabled
|
@@ -0,0 +1 @@
|
||||
120
|
@@ -0,0 +1 @@
|
||||
daily
|
1
root/etc/e-smith/db/configuration/defaults/dnf/status
Normal file
1
root/etc/e-smith/db/configuration/defaults/dnf/status
Normal file
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/dnf/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/dnf/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
28
root/etc/e-smith/db/configuration/migrate/smeserver-update
Normal file
28
root/etc/e-smith/db/configuration/migrate/smeserver-update
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
# migrate from yum to dnf key
|
||||
my $yum = $DB->get("yum");
|
||||
if ($yum){
|
||||
my $dnf = $DB->get("dnf") ||
|
||||
$DB->new_record("dnf", { type => "service" });
|
||||
$dnf->merge_props($yum->props);
|
||||
$yum->delete;
|
||||
}
|
||||
|
||||
# tidy EOL tag
|
||||
use POSIX qw(strftime);
|
||||
my $curdate = strftime '%Y%m%d', localtime;
|
||||
my $curVers = 8;
|
||||
my $curVersEOL = 20290531;
|
||||
# we remove the forced value if for a previous release;
|
||||
# also if not after the eol date
|
||||
my $dropit = $DB->get_prop_and_delete('dnf','eolversion') if ( (substr($dnf{eolversion},0,1)<$curVers) || ( "$curdate" < "$curVersEOL") );
|
||||
|
||||
# Added for bug 8855 and bug 8858
|
||||
# we want to remove the property check4contribsupdates
|
||||
my $check4contribsupdates = $DB->get_prop('dnf','check4contribsupdates');
|
||||
if ($check4contribsupdates) {
|
||||
$DB->get('dnf')->delete_prop('check4contribsupdates');
|
||||
}
|
||||
|
||||
}
|
||||
|
0
root/etc/e-smith/db/dnf_available/.gitignore
vendored
Normal file
0
root/etc/e-smith/db/dnf_available/.gitignore
vendored
Normal file
0
root/etc/e-smith/db/dnf_installed/.gitignore
vendored
Normal file
0
root/etc/e-smith/db/dnf_installed/.gitignore
vendored
Normal file
0
root/etc/e-smith/db/dnf_updates/.gitignore
vendored
Normal file
0
root/etc/e-smith/db/dnf_updates/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=AppStream-$releasever
|
@@ -0,0 +1 @@
|
||||
Rocky Linux $releasever - AppStream
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
repository
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-$releasever
|
@@ -0,0 +1 @@
|
||||
Rocky Linux $releasever - BaseOS
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
repository
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
https://mirrors.fedoraproject.org/mirrorlist?repo=epel-$releasever&arch=$basearch
|
1
root/etc/e-smith/db/yum_repositories/defaults/epel/Name
Normal file
1
root/etc/e-smith/db/yum_repositories/defaults/epel/Name
Normal file
@@ -0,0 +1 @@
|
||||
Extra Packages for Enterprise Linux $releasever - $basearch
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/yum_repositories/defaults/epel/type
Normal file
1
root/etc/e-smith/db/yum_repositories/defaults/epel/type
Normal file
@@ -0,0 +1 @@
|
||||
repository
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=extras-$releasever
|
@@ -0,0 +1 @@
|
||||
Rocky Linux $releasever - Extras
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
repository
|
@@ -0,0 +1 @@
|
||||
no
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
http://cdn.remirepo.net/enterprise/$releasever/modular/$basearch/mirror
|
@@ -0,0 +1 @@
|
||||
Remi - modular
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
repository
|
@@ -0,0 +1 @@
|
||||
no
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
http://cdn.remirepo.net/enterprise/$releasever/safe/$basearch/mirror
|
@@ -0,0 +1 @@
|
||||
Remi - safe
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
repository
|
@@ -0,0 +1 @@
|
||||
no
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
http://cdn.remirepo.net/enterprise/$releasever/remi/$basearch/mirror
|
1
root/etc/e-smith/db/yum_repositories/defaults/remi/Name
Normal file
1
root/etc/e-smith/db/yum_repositories/defaults/remi/Name
Normal file
@@ -0,0 +1 @@
|
||||
Remi - base
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
disabled
|
1
root/etc/e-smith/db/yum_repositories/defaults/remi/type
Normal file
1
root/etc/e-smith/db/yum_repositories/defaults/remi/type
Normal file
@@ -0,0 +1 @@
|
||||
repository
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
https://mirrorlist.koozali.org/mirrorlist/smeaddons-10
|
@@ -0,0 +1 @@
|
||||
SME Server - addons
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
repository
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
https://mirrorlist.koozali.org/mirrorlist/smecontribs-10
|
@@ -0,0 +1 @@
|
||||
SME Server - contribs
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
repository
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
https://mirrorlist.koozali.org/mirrorlist/smedev-10
|
@@ -0,0 +1 @@
|
||||
SME Server - dev
|
@@ -0,0 +1 @@
|
||||
no
|
@@ -0,0 +1 @@
|
||||
disabled
|
@@ -0,0 +1 @@
|
||||
repository
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
https://mirrorlist.koozali.org/mirrorlist/smeextras-10
|
@@ -0,0 +1 @@
|
||||
SME Server - extras
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
repository
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
https://mirrorlist.koozali.org/mirrorlist/smeos-10
|
1
root/etc/e-smith/db/yum_repositories/defaults/smeos/Name
Normal file
1
root/etc/e-smith/db/yum_repositories/defaults/smeos/Name
Normal file
@@ -0,0 +1 @@
|
||||
SME Server - os
|
@@ -0,0 +1 @@
|
||||
yes
|
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/yum_repositories/defaults/smeos/type
Normal file
1
root/etc/e-smith/db/yum_repositories/defaults/smeos/type
Normal file
@@ -0,0 +1 @@
|
||||
repository
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user