Merge pull request #726 from WordOps/updating-configuration

Fix GitHub Actions
This commit is contained in:
VirtuBox
2025-04-11 22:47:15 +02:00
committed by GitHub
2 changed files with 6 additions and 8 deletions

View File

@@ -31,9 +31,14 @@ jobs:
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php -y > /dev/null 2>&1
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get purge --option=Dpkg::options::=--force-all --assume-yes graphviz* redis* php* mysql* nginx* > /dev/null 2>&1
sudo apt-get install -qq git ccze tree > /dev/null 2>&1
sudo apt-get install -qq git ccze tree apt-transport-https curl > /dev/null 2>&1
sudo apt-get -qq autoremove --purge > /dev/null 2>&1
sudo bash -c 'echo -e "[user]\n\tname = abc\n\temail = root@localhost.com" > $HOME/.gitconfig'
sudo mkdir -p /etc/apt/keyrings
sudo curl -o /etc/apt/keyrings/mariadb-keyring.pgp 'https://mariadb.org/mariadb_release_signing_key.pgp'
ubuntu_version=$(lsb_release -cs)
echo "deb [signed-by=/etc/apt/keyrings/mariadb-keyring.pgp] http://mariadb.mirrors.ovh.net/MariaDB/repo/11.4/ubuntu $ubuntu_version main" | sudo tee /etc/apt/sources.list.d/mariadb.list
- name: Install WordOps
run: sudo timeout 1800 bash install --travis
- name: Run tests

View File

@@ -34,13 +34,6 @@ class WORepo():
repofile.write(repo_url)
repofile.write('\n')
repofile.close()
elif repo_url not in open(repo_file_path,
encoding='utf-8').read():
with open(repo_file_path,
encoding='utf-8', mode='w') as repofile:
repofile.write(repo_url)
repofile.write('\n')
repofile.close()
return True
except IOError as e:
Log.debug(self, "{0}".format(e))