A collection of scripts to create a repository of deb or rpm packages 1C thin client.
Shell Nginx
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
extra
public
scripts
.gitignore
LICENSE
README.md

README.md

1C Logo

1C Thin Client Repository Maker

A collection of scripts to create a repository of deb or rpm packages 1C thin client.

How to get and use

git clone git@github.com:EvilFreelancer/1c-repository-maker.git
cd 1c-repository-maker
./scripts/1c.sh

After this the program starts to download files from the 1C site.

Automate it

You can automate packages update via Cron, for example:

# Update 1C packages
0 1 * * * /opt/scripts/1c-repository-maker/scripts/1c.sh

Warning: Absolute path is important!

This example mean: "Run script every day at 0 hours 0 minutes", more details you can find on Wikipedia.

Web-server configuration examples

NGINX

server {
    listen 80;
    server_name 1c.example.com;
    root /path/to/repo/public;
    charset utf8;
    server_tokens off;

    location / {
        autoindex on;
        autoindex_exact_size off;
        autoindex_localtime on;
    }
}

Apache

Alias / /path/to/repo/public/
<Directory /path/to/repo/public>
        Options +Indexes
        AllowOverride None
        order allow,deny
        allow from all
</Directory>

Depends on

  • bash
  • wget
  • dpkg-scanpackages (from dpkg-dev)
  • createrepo
  • gzip

Command for installing of all dependencies on Debian/Ubuntu:

apt-get install bash wget dpkg-dev createrepo gzip

Some links