A collection of scripts to create a repository of deb or rpm packages 1C thin client.
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.
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.
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;
}
}
Alias / /path/to/repo/public/
<Directory /path/to/repo/public>
Options +Indexes
AllowOverride None
order allow,deny
allow from all
</Directory>
- 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